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 }