Fix a typo
This commit is contained in:
parent
4ccd6abc16
commit
49842e83e5
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue