Fix command count
This commit is contained in:
parent
92cf2c603c
commit
22d3462f09
1 changed files with 2 additions and 4 deletions
|
|
@ -192,7 +192,6 @@ bool Device::import_chunk(const ztd::chunkdat& ch)
|
||||||
{
|
{
|
||||||
this->noteCommands[i].push_back(NoteCommand(channel,low,high,shell));
|
this->noteCommands[i].push_back(NoteCommand(channel,low,high,shell));
|
||||||
}
|
}
|
||||||
this->nb_command++;
|
|
||||||
}
|
}
|
||||||
else if(tstr == "controller") //type controller
|
else if(tstr == "controller") //type controller
|
||||||
{
|
{
|
||||||
|
|
@ -226,7 +225,6 @@ bool Device::import_chunk(const ztd::chunkdat& ch)
|
||||||
{
|
{
|
||||||
this->ctrlCommands[i].push_back(ControllerCommand(channel,min,max,mapMin,mapMax,floating,shell));
|
this->ctrlCommands[i].push_back(ControllerCommand(channel,min,max,mapMin,mapMax,floating,shell));
|
||||||
}
|
}
|
||||||
this->nb_command++;
|
|
||||||
}
|
}
|
||||||
else if(tstr == "pitch") //type pitch bend
|
else if(tstr == "pitch") //type pitch bend
|
||||||
{
|
{
|
||||||
|
|
@ -250,7 +248,6 @@ bool Device::import_chunk(const ztd::chunkdat& ch)
|
||||||
floating = importBool(tch, "float", floating);
|
floating = importBool(tch, "float", floating);
|
||||||
|
|
||||||
this->pitchCommands.push_back(PitchCommand(channel,min,max,mapMin,mapMax,floating,shell));
|
this->pitchCommands.push_back(PitchCommand(channel,min,max,mapMin,mapMax,floating,shell));
|
||||||
this->nb_command++;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -258,6 +255,7 @@ bool Device::import_chunk(const ztd::chunkdat& ch)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this->nb_command++;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -296,7 +294,7 @@ void Device::run_signal(char* buff)
|
||||||
int t;
|
int t;
|
||||||
char type;
|
char type;
|
||||||
int8_t channel;
|
int8_t channel;
|
||||||
int ctid;
|
int8_t ctid=-1;
|
||||||
int16_t value;
|
int16_t value;
|
||||||
char* pos=NULL;
|
char* pos=NULL;
|
||||||
bool note_off=false;
|
bool note_off=false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue