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 2057f4ab5a04d924e1a93808882c97044e7f72ac
parent 4d58e19fde9e7a4ef3fea785be68d81c7b95a751
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Thu, 24 Feb 2022 00:15:05 +0100

fix editor not refreshing when loading VST preset

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

diff --git a/source/jucePlugin/VirusController.cpp b/source/jucePlugin/VirusController.cpp @@ -216,15 +216,15 @@ namespace Virus void Controller::parseParamChange(const SysEx &msg) { constexpr auto pos = kHeaderWithMsgCodeLen - 1; - const auto value = msg[pos + 3]; - const auto bank = msg[pos]; + const auto page = msg[pos]; const auto ch = msg[pos + 1]; const auto index = msg[pos + 2]; - auto param = findSynthParam(ch, bank, index); + const auto value = msg[pos + 3]; + auto param = findSynthParam(ch, page, index); if (param == nullptr && ch != 0) { // ensure it's not global - param = findSynthParam(0, bank, index); + param = findSynthParam(0, page, index); if (param == nullptr) { jassertfalse; @@ -492,6 +492,7 @@ namespace Virus void Controller::onStateLoaded() const { sendSysEx(constructMessage({ MessageType::REQUEST_TOTAL })); + sendSysEx(constructMessage({ MessageType::REQUEST_ARRANGEMENT })); } std::vector<uint8_t> Controller::constructMessage(SysEx msg) const