Browse Source

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

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.03
falkTX 3 years ago
parent
commit
80f90ff45a
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      plugins/Cardinal/src/HostMIDI-CC.cpp

+ 5
- 3
plugins/Cardinal/src/HostMIDI-CC.cpp View File

@@ -166,15 +166,17 @@ struct HostMIDICC : TerminalModule {
const uint8_t status = data[0] & 0xF0; const uint8_t status = data[0] & 0xF0;
const uint8_t chan = data[0] & 0x0F; const uint8_t chan = data[0] & 0x0F;


/**/ if (status == 0xD0)
if (status == 0xD0)
{ {
chPressure[chan] = data[1]; chPressure[chan] = data[1];
continue;
} }
else if (status == 0xE0)
if (status == 0xE0)
{ {
pitchbend[chan] = (data[2] << 7) | data[1]; pitchbend[chan] = (data[2] << 7) | data[1];
continue;
} }
else if (status != 0xB0)
if (status != 0xB0)
{ {
continue; continue;
} }


Loading…
Cancel
Save