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 579ad7ea27ac0a19bbf052bbbff97ca6588b6e87
parent 42177454c77704740169fd5da75da8e509a86c7f
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat,  1 Jun 2024 12:53:25 +0200

fix value change origin, should be Ui, not ControlChange as ControlChange means midi

Diffstat:
Msource/jucePluginLib/parameterbinding.cpp | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/source/jucePluginLib/parameterbinding.cpp b/source/jucePluginLib/parameterbinding.cpp @@ -24,17 +24,17 @@ namespace pluginLib void ParameterBinding::MouseListener::mouseDrag(const juce::MouseEvent& event) { - m_param->setValueNotifyingHost(m_param->convertTo0to1(static_cast<float>(m_slider->getValue())), Parameter::ChangedBy::ControlChange); + m_param->setValueNotifyingHost(m_param->convertTo0to1(static_cast<float>(m_slider->getValue())), Parameter::ChangedBy::Ui); } void ParameterBinding::MouseListener::mouseWheelMove(const juce::MouseEvent& event, const juce::MouseWheelDetails& wheel) { - m_param->setValueNotifyingHost(m_param->convertTo0to1(static_cast<float>(m_slider->getValue())), Parameter::ChangedBy::ControlChange); + m_param->setValueNotifyingHost(m_param->convertTo0to1(static_cast<float>(m_slider->getValue())), Parameter::ChangedBy::Ui); } void ParameterBinding::MouseListener::mouseDoubleClick(const juce::MouseEvent& event) { - m_param->setValueNotifyingHost(m_param->getDefaultValue(), Parameter::ChangedBy::ControlChange); + m_param->setValueNotifyingHost(m_param->getDefaultValue(), Parameter::ChangedBy::Ui); } ParameterBinding::~ParameterBinding() @@ -165,7 +165,7 @@ namespace pluginLib if(v->getDescription().isPublic) { v->beginChangeGesture(); - v->setValueNotifyingHost(v->convertTo0to1(static_cast<float>(id - 1)), Parameter::ChangedBy::ControlChange); + v->setValueNotifyingHost(v->convertTo0to1(static_cast<float>(id - 1)), Parameter::ChangedBy::Ui); v->endChangeGesture(); } v->getValueObject().setValue(id - 1);