Browse Source

VST3 Client: Normalise and denormalise program parameter correctly

v6.1.6
reuk 4 years ago
parent
commit
712b14a272
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 2
- 2
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -859,8 +859,8 @@ public:
return String (CharPointer_UTF16 (reinterpret_cast<const CharPointer_UTF16::CharType*> (text)));
}
Vst::ParamValue toPlain (Vst::ParamValue v) const override { return v * info.stepCount; }
Vst::ParamValue toNormalized (Vst::ParamValue v) const override { return v / info.stepCount; }
Vst::ParamValue toPlain (Vst::ParamValue v) const override { return v * (info.stepCount + 1); }
Vst::ParamValue toNormalized (Vst::ParamValue v) const override { return v / (info.stepCount + 1); }
private:
AudioProcessor& owner;


Loading…
Cancel
Save