From ec1ee0f1f3703bc8a8ef64cff24a903d9168747f Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 24 Jul 2025 13:58:08 +0200 Subject: [PATCH] Fix VST3 midi/ctrl-out offset if split cycle Signed-off-by: falkTX --- source/backend/plugin/CarlaPluginVST3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/backend/plugin/CarlaPluginVST3.cpp b/source/backend/plugin/CarlaPluginVST3.cpp index e4d78fb41..90e376a87 100644 --- a/source/backend/plugin/CarlaPluginVST3.cpp +++ b/source/backend/plugin/CarlaPluginVST3.cpp @@ -3187,7 +3187,7 @@ public: continue; } - if (! pData->event.portOut->writeMidiEvent(static_cast(v3event.sample_offset), + if (! pData->event.portOut->writeMidiEvent(static_cast(v3event.sample_offset) + timeOffset, midiSize, midiData)) break; @@ -3222,7 +3222,7 @@ public: channel = pData->param.data[i].midiChannel; param = static_cast(pData->param.data[i].mappedControlIndex); - pData->event.portOut->writeControlEvent(std::max(minPortOutOffset, queue->offset), + pData->event.portOut->writeControlEvent(std::max(minPortOutOffset, queue->offset) + timeOffset, channel, kEngineControlEventTypeParameter, param,