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 0535b0b08a5895b233f4d7cce224190eb086ba42
parent 86e7b05e59aa21b374ed5693d3ad7bf348363059
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun,  2 Jun 2024 15:16:50 +0200

fix host not notified about parameter changes in all circumstances

Diffstat:
Msource/jucePluginLib/controller.cpp | 2+-
Msource/virusJucePlugin/Parts.cpp | 2+-
Msource/virusJucePlugin/VirusEditor.cpp | 2+-
Msource/xtJucePlugin/xtEditor.cpp | 2+-
4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/source/jucePluginLib/controller.cpp b/source/jucePluginLib/controller.cpp @@ -333,7 +333,7 @@ namespace pluginLib if(auto* param = getParameter(name, _part)) { res = true; - param->setUnnormalizedValue(value, _changedBy); + param->setUnnormalizedValueNotifyingHost(value, _changedBy); } } diff --git a/source/virusJucePlugin/Parts.cpp b/source/virusJucePlugin/Parts.cpp @@ -116,7 +116,7 @@ namespace genericVirusUI { menu.addItem(name + ' ' + std::to_string(i + 1), true, v->getUnnormalizedValue() == i, [v, i] { - v->setUnnormalizedValue(i, pluginLib::Parameter::Origin::Ui); + v->setUnnormalizedValueNotifyingHost(i, pluginLib::Parameter::Origin::Ui); }); } diff --git a/source/virusJucePlugin/VirusEditor.cpp b/source/virusJucePlugin/VirusEditor.cpp @@ -396,7 +396,7 @@ namespace genericVirusUI const auto playMode = getController().getParameterIndexByName(Virus::g_paramPlayMode); auto* param = getController().getParameter(playMode); - param->setUnnormalizedValue(_playMode, pluginLib::Parameter::Origin::Ui); + param->setUnnormalizedValueNotifyingHost(_playMode, pluginLib::Parameter::Origin::Ui); // we send this directly here as we request a new arrangement below, we don't want to wait on juce to inform the knob to have changed getController().sendParameterChange(*param, _playMode); diff --git a/source/xtJucePlugin/xtEditor.cpp b/source/xtJucePlugin/xtEditor.cpp @@ -199,7 +199,7 @@ namespace xtJucePlugin if(newText.empty()) continue; - p->setUnnormalizedValue(v, pluginLib::Parameter::Origin::Ui); + p->setUnnormalizedValueNotifyingHost(v, pluginLib::Parameter::Origin::Ui); break; } }