From 80f90ff45a356e1e9947f299f1a6fdca7e142ac6 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 27 Feb 2022 00:23:40 +0000 Subject: [PATCH] Fix Host MIDI-CC chan.pressure and pitchbend interfering with CCs Signed-off-by: falkTX --- plugins/Cardinal/src/HostMIDI-CC.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/Cardinal/src/HostMIDI-CC.cpp b/plugins/Cardinal/src/HostMIDI-CC.cpp index 9e48a1d..850f7a5 100644 --- a/plugins/Cardinal/src/HostMIDI-CC.cpp +++ b/plugins/Cardinal/src/HostMIDI-CC.cpp @@ -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; }