diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |