Fix Host MIDI-CC chan.pressure and pitchbend interfering with CCs
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
5188b50a4f
commit
80f90ff45a
1 changed files with 5 additions and 3 deletions
|
@ -166,15 +166,17 @@ struct HostMIDICC : TerminalModule {
|
|||
const uint8_t status = data[0] & 0xF0;
|
||||
const uint8_t chan = data[0] & 0x0F;
|
||||
|
||||
/**/ if (status == 0xD0)
|
||||
if (status == 0xD0)
|
||||
{
|
||||
chPressure[chan] = data[1];
|
||||
continue;
|
||||
}
|
||||
else if (status == 0xE0)
|
||||
if (status == 0xE0)
|
||||
{
|
||||
pitchbend[chan] = (data[2] << 7) | data[1];
|
||||
continue;
|
||||
}
|
||||
else if (status != 0xB0)
|
||||
if (status != 0xB0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue