commit 18080c09861985cb6b5927de472ab7268c1535a7
parent 1c693cde514d4945e283a89780bd7152e4da2e4a
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Mon, 28 Feb 2022 17:10:55 +0100
do not echo DAW parameter changes back to DAW
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/source/jucePlugin/VirusParameter.cpp b/source/jucePlugin/VirusParameter.cpp
@@ -31,6 +31,8 @@ namespace Virus
void Parameter::setValueFromSynth(int newValue, const bool notifyHost)
{
+ if (newValue == m_lastValue)
+ return;
m_lastValue = newValue;
if (notifyHost)
setValueNotifyingHost(convertTo0to1(static_cast<float>(newValue)));