From 17630ee9a6b9a0db791f3b72a36df34a852ab231 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 8 Feb 2022 23:10:15 +0000 Subject: [PATCH] Fix MIDI gate 17 and 18 Closes #140 Signed-off-by: falkTX --- dpf | 2 +- plugins/Cardinal/src/HostMIDI-Gate.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dpf b/dpf index 07de97b..6544084 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 07de97ba7201ae22705a4f1101afa0f853c845ae +Subproject commit 65440847faef769cfcb07a94009642341820dd63 diff --git a/plugins/Cardinal/src/HostMIDI-Gate.cpp b/plugins/Cardinal/src/HostMIDI-Gate.cpp index 08b9a55..7232c9a 100644 --- a/plugins/Cardinal/src/HostMIDI-Gate.cpp +++ b/plugins/Cardinal/src/HostMIDI-Gate.cpp @@ -159,7 +159,7 @@ struct HostMIDIGate : TerminalModule { learningId = -1; } // Find id - for (int i = 0; i < 16; i++) { + for (int i = 0; i < 18; i++) { if (learnedNotes[i] == data[1]) { gates[i][c] = true; gateTimes[i][c] = 1e-3f; @@ -173,7 +173,7 @@ struct HostMIDIGate : TerminalModule { case 0x80: const int c = mpeMode ? (data[0] & 0x0F) : 0; // Find id - for (int i = 0; i < 16; i++) { + for (int i = 0; i < 18; i++) { if (learnedNotes[i] == data[1]) { gates[i][c] = false; }