diff --git a/engine.c b/engine.c index dbd762f..0081ca0 100644 --- a/engine.c +++ b/engine.c @@ -67,7 +67,7 @@ static int process_callback(jack_nframes_t nframes, void *arg) { // The actual recording should be done via an action. // For now, we just dispatch the trigger and let the reducer handle it. - uint8_t out_velocity = clip_state_to_velocity(state.clips[note % MAX_CLIPS].state); + uint8_t out_velocity = clip_state_to_velocity(state->clips[note % MAX_CLIPS].state); uint8_t out_msg[3] = {0x90 | channel, note, out_velocity}; jack_midi_event_write(midi_out_buf, midi_event.time, out_msg, 3); } else {