Fix Host MIDI-CC chan.pressure and pitchbend interfering with CCs

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-02-27 00:23:40 +00:00
parent 5188b50a4f
commit 80f90ff45a
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -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;
}