From b77c43779254e3b0c6361d76a33342571e8f5e09 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 29 Aug 2023 11:20:12 +0200 Subject: [PATCH] Fix DSSI MIDI events Signed-off-by: falkTX --- source/backend/plugin/CarlaPluginLADSPADSSI.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/backend/plugin/CarlaPluginLADSPADSSI.cpp b/source/backend/plugin/CarlaPluginLADSPADSSI.cpp index d973ad615..fa2ad1935 100644 --- a/source/backend/plugin/CarlaPluginLADSPADSSI.cpp +++ b/source/backend/plugin/CarlaPluginLADSPADSSI.cpp @@ -1569,6 +1569,7 @@ public: CARLA_SAFE_ASSERT_CONTINUE(note.channel >= 0 && note.channel < MAX_MIDI_CHANNELS); snd_seq_event_t& seqEvent(fMidiEvents[midiEventCount++]); + carla_zeroStruct(seqEvent); seqEvent.type = (note.velo > 0) ? SND_SEQ_EVENT_NOTEON : SND_SEQ_EVENT_NOTEOFF; seqEvent.data.note.channel = static_cast(note.channel); @@ -1727,6 +1728,7 @@ public: continue; snd_seq_event_t& seqEvent(fMidiEvents[midiEventCount++]); + carla_zeroStruct(seqEvent); seqEvent.time.tick = isSampleAccurate ? startTime : eventTime; @@ -1771,6 +1773,7 @@ public: continue; snd_seq_event_t& seqEvent(fMidiEvents[midiEventCount++]); + carla_zeroStruct(seqEvent); seqEvent.time.tick = isSampleAccurate ? startTime : eventTime; @@ -1795,6 +1798,7 @@ public: continue; snd_seq_event_t& seqEvent(fMidiEvents[midiEventCount++]); + carla_zeroStruct(seqEvent); seqEvent.time.tick = isSampleAccurate ? startTime : eventTime; @@ -1823,6 +1827,7 @@ public: status = MIDI_STATUS_NOTE_OFF; snd_seq_event_t& seqEvent(fMidiEvents[midiEventCount++]); + carla_zeroStruct(seqEvent); seqEvent.time.tick = isSampleAccurate ? startTime : eventTime;