gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit e908e0ce5854522912000e010ced17c9bb0cb1a3
parent 207049e4eabe13df430e5e823437eff4425c25fd
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun, 24 Nov 2024 03:19:58 +0100

hide vm map component if it is zero

Diffstat:
Msource/nord/n2x/n2xJucePlugin/n2xVmMap.cpp | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/source/nord/n2x/n2xJucePlugin/n2xVmMap.cpp b/source/nord/n2x/n2xJucePlugin/n2xVmMap.cpp @@ -179,7 +179,11 @@ namespace n2xJucePlugin const auto baseValue = _vmParam.paramBase->getUnnormalizedValue(); - _vmParam.compVm->setValue(baseValue + _vmParam.paramVm->getUnnormalizedValue(), juce::dontSendNotification); + const auto offset = _vmParam.paramVm->getUnnormalizedValue(); + + _vmParam.compVm->setValue(baseValue + offset, juce::dontSendNotification); _vmParam.compVm->setDoubleClickReturnValue(true, baseValue); + + _vmParam.compVm->setAlpha(offset != 0 ? 1.0f : 0.0f); } }