diff --git a/include/command.hpp b/include/command.hpp index 0b35f3f..295b23f 100644 --- a/include/command.hpp +++ b/include/command.hpp @@ -9,9 +9,8 @@ class NoteCommand { public: - NoteCommand(uint8_t i, int8_t ch, uint8_t l, uint8_t h, std::string sh); + NoteCommand(int8_t ch, uint8_t l, uint8_t h, std::string sh); - uint8_t id; int8_t channel; uint8_t low; uint8_t high; @@ -22,9 +21,8 @@ class ControllerCommand { public: - ControllerCommand(uint8_t i, int8_t ch, uint8_t l, uint8_t h, float ml, float mm, bool fl, std::string sh); + ControllerCommand(int8_t ch, uint8_t l, uint8_t h, float ml, float mm, bool fl, std::string sh); - uint8_t id; int8_t channel; uint8_t min; uint8_t max; diff --git a/src/command.cpp b/src/command.cpp index a077726..3eac0b3 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -1,17 +1,15 @@ #include "command.hpp" -NoteCommand::NoteCommand(uint8_t i, int8_t ch, uint8_t l, uint8_t h, std::string sh) +NoteCommand::NoteCommand(int8_t ch, uint8_t l, uint8_t h, std::string sh) { - this->id=i; this->channel=ch; this->low=l; this->high=h; this->shell=sh; } -ControllerCommand::ControllerCommand(uint8_t i, int8_t ch, uint8_t l, uint8_t h, float ml, float mh, bool fl, std::string sh) +ControllerCommand::ControllerCommand(int8_t ch, uint8_t l, uint8_t h, float ml, float mh, bool fl, std::string sh) { - this->id=i; this->channel=ch; this->min=l; this->max=h; diff --git a/src/device.cpp b/src/device.cpp index 4f261d3..612fea3 100644 --- a/src/device.cpp +++ b/src/device.cpp @@ -154,7 +154,7 @@ bool Device::import_chunk(Chunk const& ch) for( uint8_t i=id_low ; i <= id_high ; i++ ) { - this->noteCommands[i].push_back(NoteCommand(i,channel,low,high,shell)); + this->noteCommands[i].push_back(NoteCommand(channel,low,high,shell)); } this->nb_command++; } @@ -188,7 +188,7 @@ bool Device::import_chunk(Chunk const& ch) for( uint8_t i=id_low ; i <= id_high ; i++ ) { - this->ctrlCommands[i].push_back(ControllerCommand(i,channel,min,max,mapMin,mapMax,floating,shell)); + this->ctrlCommands[i].push_back(ControllerCommand(channel,min,max,mapMin,mapMax,floating,shell)); } this->nb_command++; }