Commit 68199a50 authored by jhammen's avatar jhammen
Browse files

implement midi cc 123 all notes off

parent bb88ddeb
......@@ -245,6 +245,16 @@ void Plugin::run(uint32_t sampleCount)
}
break;
}
case LV2_MIDI_MSG_CONTROLLER:
{
uint8_t control = msg[1];
if(control == 123) { // All Notes Off
for(uint16_t counter = 0; counter < maxActive; counter++) {
SamplePlay &play = active[counter];
play.cancel();
}
}
}
default:
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment