Skip to content

Commit

Permalink
fix notes from another pattern being turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
scanner-darkly committed Oct 18, 2023
1 parent 6ea1213 commit 7f371d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ void handler_ESGridKey(u8 x, u8 y, u8 z) {
if (z) {
u8 found = 0;
for (u8 i = 0; i < VOICE_COUNT; i++)
if (x == es_notes[i].x && y == es_notes[i].y && es_notes[i].active) {
if (x == es_notes[i].x && y == es_notes[i].y && es_notes[i].active && es_notes[i].from_pattern == e.p_select) {
es_note_off(x, y);
found = 1;
}
Expand Down

0 comments on commit 7f371d0

Please # to comment.