diff options
Diffstat (limited to 'plugins/eg-midigate.lv2')
-rw-r--r-- | plugins/eg-midigate.lv2/midigate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/eg-midigate.lv2/midigate.c b/plugins/eg-midigate.lv2/midigate.c index 70901f6..6c77828 100644 --- a/plugins/eg-midigate.lv2/midigate.c +++ b/plugins/eg-midigate.lv2/midigate.c @@ -161,7 +161,7 @@ run(LV2_Handle instance, uint32_t sample_count) LV2_ATOM_SEQUENCE_FOREACH(self->control, ev) { if (ev->body.type == self->uris.midi_MidiEvent) { - const uint8_t* const msg = (const uint8_t*)(ev + 1); + const uint8_t* const msg = (const uint8_t*)LV2_ATOM_BODY_CONST(ev); switch (lv2_midi_message_type(msg)) { case LV2_MIDI_MSG_NOTE_ON: ++self->n_active_notes; |