From 76445cd97ff2c0929a308a8997688b783cfdb267 Mon Sep 17 00:00:00 2001 From: Roland Rabien Date: Thu, 5 Oct 2023 06:52:46 -0700 Subject: [PATCH] Don't switch ui tabs when loading presets --- Changelist.txt | 1 + modules/gin | 2 +- plugin/Source/PluginProcessor.cpp | 9 +++++++++ plugin/Source/PluginProcessor.h | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Changelist.txt b/Changelist.txt index a55669c..4e932c8 100644 --- a/Changelist.txt +++ b/Changelist.txt @@ -4,6 +4,7 @@ - Add modulation overview to title bar - Tabs now switch when dragging modulation over their buttons - Make sure editor scale does change loading presets +- Don't switch ui tabs when loading presets 1.0.9: diff --git a/modules/gin b/modules/gin index a3ebb2f..d31158a 160000 --- a/modules/gin +++ b/modules/gin @@ -1 +1 @@ -Subproject commit a3ebb2f521e4caa069579ae24d426ad833ed81c6 +Subproject commit d31158aff17cc717972f6d2f75439b9bc036b434 diff --git a/plugin/Source/PluginProcessor.cpp b/plugin/Source/PluginProcessor.cpp index 5a4490d..3eae156 100644 --- a/plugin/Source/PluginProcessor.cpp +++ b/plugin/Source/PluginProcessor.cpp @@ -698,6 +698,15 @@ void WavetableAudioProcessor::setupModMatrix() modMatrix.build(); } +bool WavetableAudioProcessor::isParamLocked (gin::Parameter* p) +{ + if (p == uiParams.activeMOD) return true; + if (p == uiParams.activeLFO) return true; + if (p == uiParams.activeENV) return true; + + return false; +} + float WavetableAudioProcessor::getSmoothingTime (gin::Parameter*) { return 0.02f; diff --git a/plugin/Source/PluginProcessor.h b/plugin/Source/PluginProcessor.h index 692943c..aa80deb 100644 --- a/plugin/Source/PluginProcessor.h +++ b/plugin/Source/PluginProcessor.h @@ -287,6 +287,7 @@ public: juce::Random rng; private: + bool isParamLocked (gin::Parameter* p) override; float getSmoothingTime (gin::Parameter*); //==============================================================================