From 3a358dde0c85b68fee6b2ae6e8a1f80a403121b9 Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Sun, 3 May 2026 19:14:20 +0000 Subject: [PATCH] fix: initialize max_events when clearing clip state --- dispatcher.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dispatcher.c b/dispatcher.c index 60e9abc..6197faa 100644 --- a/dispatcher.c +++ b/dispatcher.c @@ -533,6 +533,7 @@ AppState reducer(AppState state, Action action) { mclip->state = CLIP_EMPTY; mclip->event_count = 0; mclip->read_index = 0; + mclip->max_events = MAX_MIDI_EVENTS; // events pointer should already be valid from init }