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 2af607d5676dd262537e2a935a4e60f80c133bda
parent 9d6734c6394ff896f7bd54be4b8dfcaeb3d7c930
Author: Tal Aviram <me@talaviram.com>
Date:   Tue,  7 Sep 2021 17:51:06 +0300

controller - bank select parameter updates.

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

diff --git a/source/jucePlugin/VirusController.cpp b/source/jucePlugin/VirusController.cpp @@ -318,9 +318,21 @@ namespace Virus findSynthParam(part, bank, m.b)->setValueFromSynth(m.c, true); } + + juce::String numToBank(float bankIdx, Parameter::Description) + { + jassert(bankIdx >= 0); + juce::String prefix = "RAM"; + if (bankIdx > 3) + { + prefix = bankIdx < 9 ? "ROM " : "ROM"; + } + return prefix + juce::String(juce::roundToInt(bankIdx + 1)); + } + const std::initializer_list<Parameter::Description> Controller::m_paramsDescription = { - {Parameter::Page::A, Parameter::Class::PERFORMANCE_CONTROLLER, 0, "Bank Select", {0,3}, {},{}, true, true, false}, + {Parameter::Page::A, Parameter::Class::PERFORMANCE_CONTROLLER, 0, "Bank Select", {0, 3 + 26}, numToBank, {}, false, true, false}, // The Virus TI contains 4 banks of RAM, followed by 26 banks of ROM {Parameter::Page::A, Parameter::Class::PERFORMANCE_CONTROLLER, 1, "Modulation Wheel", {0,127}, {},{}, false, false, false}, {Parameter::Page::A, Parameter::Class::PERFORMANCE_CONTROLLER, 2, "Breath Controller", {0,127}, {},{}, false, false, false}, {Parameter::Page::A, Parameter::Class::PERFORMANCE_CONTROLLER, 3, "Contr 3", {0,127}, {},{}, false, false, false},