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 0968c835b499fd7026e24933d1ff28c61dbd3083
parent 50ad05df8949c78c788b5727301ffe00b1c4d328
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat, 13 Jul 2024 14:26:33 +0200

fix initial state of Multi Mode button not set

Diffstat:
Mdoc/changelog.txt | 3+++
Msource/xtJucePlugin/xtEditor.cpp | 13++++++++++---
2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/doc/changelog.txt b/doc/changelog.txt @@ -15,6 +15,9 @@ Xenia: - [Imp] Added support for MW1 patches - [Imp] FX delay times are now displayed as note length + BPM as on hardware +- [Fix] Initial state of Multi Mode button was always off even though the device + might have booted with Multi Mode enabled + 1.3.15 (2023.07.06) Framework: diff --git a/source/xtJucePlugin/xtEditor.cpp b/source/xtJucePlugin/xtEditor.cpp @@ -56,10 +56,17 @@ namespace xtJucePlugin m_controller.setPlayMode(m_btMultiMode->getToggleState()); }; - m_playModeChangeListener = [this](const bool& isMultiMode) + auto updateMultiButton = [this](const bool _isMultiMode) { - m_btMultiMode->setToggleState(isMultiMode, juce::dontSendNotification); - m_ledMultiMode->setToggleState(isMultiMode, juce::dontSendNotification); + m_btMultiMode->setToggleState(_isMultiMode, juce::dontSendNotification); + m_ledMultiMode->setToggleState(_isMultiMode, juce::dontSendNotification); + }; + + updateMultiButton(m_controller.isMultiMode()); + + m_playModeChangeListener = [this, updateMultiButton](const bool& _isMultiMode) + { + updateMultiButton(_isMultiMode); m_frontPanel->getLcd()->refresh(); };