Fix MIDI gate 17 and 18

Closes #140

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-02-08 23:10:15 +00:00
parent db21bbe5fc
commit 17630ee9a6
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
2 changed files with 3 additions and 3 deletions

View file

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