commit c7baf5cefe85be9a69f1e321c17fda9c6357f0f0
parent 93abcc869bb9e839d4c49db3585155af177d36c6
Author: falkTX <falktx@falktx.com>
Date: Mon, 20 Jun 2022 23:54:43 +0100
Correct offset for MIDI CC params
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/distrho/src/DistrhoPluginVST3.cpp b/distrho/src/DistrhoPluginVST3.cpp
@@ -411,6 +411,8 @@ class PluginVst3
{
InputEventStorage& eventStorage(eventListStorage[numUsed]);
+ paramId -= kVst3InternalParameterMidiCC_start;
+
const uint8_t cc = paramId % 130;
switch (cc)