From 316fc0fe3b341c10707387ff2412ff123b7b044a Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Sun, 3 May 2026 19:05:29 +0000 Subject: [PATCH] refactor: replace static MIDI event array with dynamic allocation --- dispatcher.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dispatcher.h b/dispatcher.h index 0d601e9..1b82fe0 100644 --- a/dispatcher.h +++ b/dispatcher.h @@ -56,8 +56,9 @@ typedef struct { typedef struct { ClipState state; - MidiEvent events[MAX_MIDI_EVENTS]; + MidiEvent *events; // Dynamically allocated int event_count; + int max_events; // Allocated size int read_index; char channel_name[64]; // per-channel name for MIDI grid } MidiClip;