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 42baa346e99da2661618358af27ccaca748edd5a
parent 0366cda1eaad2f4afe48410d5f989982b79bb5c8
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Tue,  1 Mar 2022 21:46:07 +0100

fix beginGesture/endGesture not called when changing parameters from synth, causing automation to get "stuck", constantly overwriting existing automation

Diffstat:
Msource/jucePlugin/VirusParameter.cpp | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/source/jucePlugin/VirusParameter.cpp b/source/jucePlugin/VirusParameter.cpp @@ -34,10 +34,17 @@ namespace Virus if (newValue == m_lastValue) return; m_lastValue = newValue; + if (notifyHost) + { + beginChangeGesture(); setValueNotifyingHost(convertTo0to1(static_cast<float>(newValue))); + endChangeGesture(); + } else + { m_value.setValue(newValue); + } } juce::String Parameter::genId(const Description &d, const int part)