Browse Source

Fix MIDI gate 17 and 18

Closes #140

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 3 years ago
parent
commit
17630ee9a6
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      dpf
  2. +2
    -2
      plugins/Cardinal/src/HostMIDI-Gate.cpp

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 07de97ba7201ae22705a4f1101afa0f853c845ae
Subproject commit 65440847faef769cfcb07a94009642341820dd63

+ 2
- 2
plugins/Cardinal/src/HostMIDI-Gate.cpp 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;
}


Loading…
Cancel
Save