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 def208c57b3952d0c8609dbc47766f2aeb1ec954
parent 061e40d087bdf90f6a28e7082fbcac972fa9512b
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sat, 20 Apr 2024 02:09:50 +0200

fix not being able to save patches

Diffstat:
Msource/xtJucePlugin/xtPartButton.cpp | 8+-------
Msource/xtJucePlugin/xtPartButton.h | 3---
Msource/xtJucePlugin/xtParts.cpp | 2+-
3 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/source/xtJucePlugin/xtPartButton.cpp b/source/xtJucePlugin/xtPartButton.cpp @@ -10,14 +10,8 @@ namespace xtJucePlugin { } - void PartButton::setPart(const uint8_t _part) - { - m_part = _part; - } - void PartButton::onClick() { - if(!m_editor.getParts().selectPart(m_part)) - setToggleState(false, juce::dontSendNotification); + m_editor.getParts().selectPart(getPart()); } } diff --git a/source/xtJucePlugin/xtPartButton.h b/source/xtJucePlugin/xtPartButton.h @@ -11,12 +11,9 @@ namespace xtJucePlugin public: PartButton(Editor& _editor, const std::string& _name, ButtonStyle _buttonStyle); - void setPart(uint8_t _part); - void onClick() override; private: Editor& m_editor; - uint8_t m_part; }; } diff --git a/source/xtJucePlugin/xtParts.cpp b/source/xtJucePlugin/xtParts.cpp @@ -19,7 +19,7 @@ namespace xtJucePlugin part.m_button = buttons[i]; part.m_led = leds[i]; - part.m_button->setPart(static_cast<uint8_t>(i)); + part.m_button->initalize(static_cast<uint8_t>(i)); } updateUi();