From 06ded7d011b9505029367aee68d4759f7c2a5cf8 Mon Sep 17 00:00:00 2001 From: xenakios Date: Thu, 8 Nov 2018 21:55:30 +0200 Subject: [PATCH] Comments and readme addition --- Source/PluginEditor.cpp | 6 +++++- readme.txt | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 86edf8c..89bea5a 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -1261,6 +1261,9 @@ void ParameterComponent::buttonClicked(Button * but) } else { + // If we have the non-parameter state pointer, just set the target parameter to true. + // Logic in the AudioProcessor determines what should be done and it sets the parameter immediately back + // to false when it sees the parameter is true. *boolpar = true; } } @@ -1279,7 +1282,7 @@ void ParameterComponent::updateComponent() m_slider->setValue(*intpar, dontSendNotification); } AudioParameterBool* boolpar = dynamic_cast(m_par); - if (m_togglebut != nullptr) // && m_togglebut->getToggleState() != *boolpar) + if (m_togglebut != nullptr) { if (m_nonparamstate == nullptr) { @@ -1288,6 +1291,7 @@ void ParameterComponent::updateComponent() } else { + // If we have the non-parameter state pointer, get the button toggle state from that if (m_togglebut->getToggleState()!=*m_nonparamstate) m_togglebut->setToggleState(*m_nonparamstate, dontSendNotification); } diff --git a/readme.txt b/readme.txt index 485d3d2..5d041a0 100644 --- a/readme.txt +++ b/readme.txt @@ -12,6 +12,7 @@ History : -Added varispeed (resampling speed change) feature when spectral stretch engine is bypassed -Added shortcut key (may not work properly in all plugin formats and hosts) : "I" to open file import dialog + -Attempt to prevent capture enabled state from being recalled when undoing in the host -Added VST3 version -Removed VST2 version from binaries. :( It is still possible to build VST2 from source code, if the VST2 SDK is available. (But distributing the binaries is likely not allowed if the distributor doesn't have