summaryrefslogtreecommitdiffstats
path: root/src/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index de3d796..8f70a6e 100644
--- a/src/app.c
+++ b/src/app.c
@@ -536,7 +536,16 @@ app_surface_event(u8 type, u8 index, u8 value) {
536 } 536 }
537 return; 537 return;
538 } 538 }
539 // Find the minimum channel the keyboard can use for sending
540 // notes.
539 u8 channel = 0; 541 u8 channel = 0;
542 for (int i = 0; i < 16; i++) {
543 if (state.ch_listen[i] != 0) {
544 channel = i;
545 break;
546 }
547 }
548
540 // TODO: Aftertouch? 549 // TODO: Aftertouch?
541 // TODO: Per KBD channel selection. 550 // TODO: Per KBD channel selection.
542 int note = kbd_find_note(index); 551 int note = kbd_find_note(index);