Browse Source

Fix VST3 midi/ctrl-out offset if split cycle

Signed-off-by: falkTX <falktx@falktx.com>
pull/1961/merge
falkTX 3 months ago
parent
commit
ec1ee0f1f3
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      source/backend/plugin/CarlaPluginVST3.cpp

+ 2
- 2
source/backend/plugin/CarlaPluginVST3.cpp View File

@@ -3187,7 +3187,7 @@ public:
continue;
}

if (! pData->event.portOut->writeMidiEvent(static_cast<uint32_t>(v3event.sample_offset),
if (! pData->event.portOut->writeMidiEvent(static_cast<uint32_t>(v3event.sample_offset) + timeOffset,
midiSize,
midiData))
break;
@@ -3222,7 +3222,7 @@ public:
channel = pData->param.data[i].midiChannel;
param = static_cast<uint16_t>(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,


Loading…
Cancel
Save