Browse Source

Fix a typo

tags/22.03
falkTX 4 years ago
parent
commit
49842e83e5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      plugins/Cardinal/src/HostMIDI-CC.cpp

+ 2
- 2
plugins/Cardinal/src/HostMIDI-CC.cpp View File

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

{


Loading…
Cancel
Save