feat: add parallel MIDI grid with separate clip storage and view toggle

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-03 18:49:21 +00:00
parent 5e4d4e4d44
commit 61ab2f0b19
6 changed files with 216 additions and 25 deletions

11
main.c
View File

@@ -95,8 +95,19 @@ int main(int argc, char *argv[]) {
initial_state.clips[i].buffer_size = 0;
initial_state.clips[i].write_position = 0;
initial_state.clips[i].read_position = 0;
// Initialize MIDI clips
initial_state.midi_clips[i].state = CLIP_EMPTY;
initial_state.midi_clips[i].event_count = 0;
initial_state.midi_clips[i].read_index = 0;
}
// Initialize channel names
for (int ch = 0; ch < MAX_CHANNELS; ch++) {
snprintf(initial_state.channel_names[ch], 64, "Channel %d", ch);
}
initial_state.show_midi_grid = false;
// Carla host is now initialized in engine_init
// Initialize dispatcher
dispatch = dispatcher_init(&initial_state);