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 563da64c0355444cb703c3e6e486c5f28bd66ca9
parent d3af12ef8a919271274f6062bcd425ee647a9500
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat, 12 Feb 2022 03:20:08 +0100

fix misleading name "bank" to "page"

Diffstat:
Msource/jucePlugin/VirusController.cpp | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/source/jucePlugin/VirusController.cpp b/source/jucePlugin/VirusController.cpp @@ -428,17 +428,17 @@ namespace Virus void Controller::parseControllerDump(synthLib::SMidiEvent &m) { - uint8_t bank; + uint8_t page; uint8_t part; if (m.a & synthLib::M_CONTROLCHANGE) { part = m.a ^ synthLib::M_CONTROLCHANGE; - bank = 0x0; + page = 0x0; } else if (m.a & synthLib::M_POLYPRESSURE) { part = m.a ^ synthLib::M_POLYPRESSURE; - bank = 0x1; + page = 0x1; } else { @@ -447,7 +447,7 @@ namespace Virus } jassert(bank != 0xFF); DBG(juce::String::formatted("Set part: %d bank: %s param: %d value: %d", part, bank == 0 ? "A" : "B", m.b, m.c)); - findSynthParam(part, bank, m.b)->setValueFromSynth(m.c, true); + findSynthParam(part, page, m.b)->setValueFromSynth(m.c, true); } uint8_t Controller::copyData(const SysEx &src, int startPos, std::array<uint8_t, kDataSizeInBytes>& dst)