From 49842e83e5a0f30726519017c045500d807e8b5e Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 27 Feb 2022 04:25:22 +0000 Subject: [PATCH] Fix a typo --- plugins/Cardinal/src/HostMIDI-CC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Cardinal/src/HostMIDI-CC.cpp b/plugins/Cardinal/src/HostMIDI-CC.cpp index 850f7a5..45130c3 100644 --- a/plugins/Cardinal/src/HostMIDI-CC.cpp +++ b/plugins/Cardinal/src/HostMIDI-CC.cpp @@ -427,13 +427,13 @@ struct HostMIDICC : TerminalModule { if (isBypassed()) return; - for (int i = 0; i < 16; i++) + for (int id = 0; id < 16; id) { if (learnedCcs[id] < 0) continue; uint8_t value = (uint8_t) clamp(std::round(inputs[CC_INPUTS + id].getVoltage() / 10.f * 127), 0.f, 127.f); - midiOutput.sendCC(learnedCcs[i], value); + midiOutput.sendCC(learnedCcs[id], value); } {