feat: implement bind feature for associating channels with MIDI notes

Co-authored-by: aider (deepseek/deepseek-reasoner) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-09 10:22:33 +00:00
parent 740ebaa969
commit 4bacab68c6
3 changed files with 151 additions and 23 deletions

View File

@@ -18,6 +18,7 @@ atomic_int cmd_remove = 0;
jack_port_t *midi_control_port = NULL;
jack_port_t *midi_clock_port = NULL;
atomic_int control_key_active = 0;
atomic_int bind_channel = 0;
/* Deferred removal index (1 second grace) */
static int pending_unregister_idx = -1;