Browse Source

Fix bypass value on load and after preset change

Signed-off-by: falkTX <falktx@falktx.com>
v6.1.6-distrho
falkTX 3 years ago
parent
commit
c5bb8fae07
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 14 additions and 1 deletions
  1. +14
    -1
      modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp

+ 14
- 1
modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp View File

@@ -911,7 +911,16 @@ public:
portControls.insertMultiple (0, nullptr, parameters.size());

for (int i=0; i < parameters.size(); ++i)
lastControlValues.add (parameters.getUnchecked(i)->getValue());
{
AudioProcessorParameter* const param = parameters.getUnchecked (i);

float value = param->getValue();

if (param == bypassParameter)
value = 1.f - value;

lastControlValues.add (value);
}

curPosInfo.resetToDefault();

@@ -1522,6 +1531,10 @@ public:
if (AudioProcessorParameter* const param = parameters[i])
{
value = param->getValue();

if (param == bypassParameter)
value = 1.f - value;

lastControlValues.setUnchecked (i, value);

if (float* const portControlPtr = portControls.getUnchecked(i))


Loading…
Cancel
Save