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 6aeef9a7991cc34b6dab40d826a097ee34710d20
parent 1664f0afadf7924d60273f98c5b3c400278b2d49
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Tue, 17 May 2022 00:09:10 +0200

helper function to check if a parameter is non-part-sensitive

Diffstat:
Msource/jucePluginLib/parameterdescription.cpp | 4++++
Msource/jucePluginLib/parameterdescription.h | 2++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/source/jucePluginLib/parameterdescription.cpp b/source/jucePluginLib/parameterdescription.cpp @@ -2,4 +2,8 @@ namespace pluginLib { + bool Description::isNonPartSensitive() const + { + return classFlags & static_cast<int>(pluginLib::ParameterClass::Global) || (classFlags & static_cast<int>(pluginLib::ParameterClass::NonPartSensitive)); + } } diff --git a/source/jucePluginLib/parameterdescription.h b/source/jucePluginLib/parameterdescription.h @@ -47,5 +47,7 @@ namespace pluginLib bool isBool; bool isBipolar; std::string toText; + + bool isNonPartSensitive() const; }; }