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 80655145039cd38b3f48fa327ff681884fa02d1a
parent 6aa2e295fd90c5f26df8ae5073d50189bbc6a571
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Fri, 31 May 2024 15:10:18 +0200

multi/single switch uses new event system

Diffstat:
Msource/virusJucePlugin/VirusController.cpp | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/source/virusJucePlugin/VirusController.cpp b/source/virusJucePlugin/VirusController.cpp @@ -46,12 +46,13 @@ namespace Virus { registerParams(p); - // add lambda to enforce updating patches when virus switch from/to multi/single. + // add lambda to enforce updating patches when virus switches from/to multi/single. const auto paramIdx = getParameterIndexByName(g_paramPlayMode); auto* parameter = getParameter(paramIdx); if(parameter) { - parameter->onValueChanged.emplace_back(0, [this] { + parameter->evValueChanged.addListener([this](pluginLib::Parameter*) + { const uint8_t prg = isMultiMode() ? 0x0 : virusLib::SINGLE; requestSingle(0, prg); requestMulti(0, prg);