Browse Source

Correct offset for MIDI CC params

Signed-off-by: falkTX <falktx@falktx.com>
pull/321/head
falkTX 2 years ago
parent
commit
c7baf5cefe
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      distrho/src/DistrhoPluginVST3.cpp

+ 2
- 0
distrho/src/DistrhoPluginVST3.cpp View File

@@ -411,6 +411,8 @@ class PluginVst3
{ {
InputEventStorage& eventStorage(eventListStorage[numUsed]); InputEventStorage& eventStorage(eventListStorage[numUsed]);


paramId -= kVst3InternalParameterMidiCC_start;

const uint8_t cc = paramId % 130; const uint8_t cc = paramId % 130;


switch (cc) switch (cc)


Loading…
Cancel
Save