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 71b051fa4308915ce9111078043415f050be6d7a
parent f00333d7d8eaf3a3e88d12995b999b521738e4c4
Author: lol-catz <lolcatz21@protonmail.com>
Date:   Thu, 30 Sep 2021 06:25:30 -0500

fix corrected labels for "phaser mode"

Diffstat:
Msource/jucePlugin/VirusController.cpp | 13++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/source/jucePlugin/VirusController.cpp b/source/jucePlugin/VirusController.cpp @@ -1064,7 +1064,18 @@ namespace Virus juce::String numToPhaserMode(float v, Parameter::Description) { - return juce::roundToInt(v) == 0 ? "Off" : "Stage " + juce::String(juce::roundToInt(v)); + const auto ridx = juce::roundToInt(v); + switch (ridx) + { + case 0: return "Off"; + case 1: return "1 Stage"; + case 2: return "2 Stages"; + case 3: return "3 Stages"; + case 4: return "4 Stages"; + case 5: return "5 Stages"; + case 6: return "6 Stages"; + default: return juce::String(v); + } } const std::initializer_list<Parameter::Description> Controller::m_paramsDescription =