Commit dc35122f authored by Jacob Vosmaer's avatar Jacob Vosmaer

Sane note offs when changing stacking cc

parent c9107676
......@@ -389,7 +389,7 @@ void mono_note_off(uint8_t n) {
mono_set_pitch();
void (*f)(uint8_t) = l_empty(&mono.held_notes) ? gate_off : gate_on;
for (uint8_t v = mono.disabled_voices; v < NUM_VOICES; v++) {
for (uint8_t v = 0; v < NUM_VOICES; v++) {
f(v);
}
}
......@@ -404,12 +404,6 @@ void mono_control_change(uint8_t ctl, uint8_t val) {
val = NUM_VOICES - 1;
}
mono.disabled_voices = val;
for (uint8_t v = 0; v < mono.disabled_voices; v++) {
gate_off(v);
}
for (uint8_t v = mono.disabled_voices; v < NUM_VOICES; v++) {
gate_on_legato(v);
}
break;
}
}
......
Markdown is supported
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