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 251d76ef153359eb0bcb42b25f38b85390fb5f3a
parent 3994223466afeb40510cd4e82173e453be7a6db6
Author: 790 <790@users.noreply.github.com>
Date:   Mon, 17 Jan 2022 18:53:30 +0000

fix arphold button. fix part patch name not updating when editing preset name

Diffstat:
Msource/jucePlugin/VirusParameter.h | 10++++++----
Msource/jucePlugin/ui/VirusEditor.cpp | 5+----
Msource/jucePlugin/ui/Virus_Buttons.cpp | 2+-
3 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/source/jucePlugin/VirusParameter.h b/source/jucePlugin/VirusParameter.h @@ -62,12 +62,14 @@ namespace Virus if (m_desc.index == 21 || m_desc.index == 31) { // osc keyfollows return 64+32; } - else if (m_desc.index == 36) { // osc vol / saturation + else if (m_desc.index == 36) // osc vol / saturation return 64; - } - else if (m_desc.index == 40 || m_desc.index == 41) { // filter cutoffs + else if (m_desc.index == 40) // filter1 cutoffs return 127; - } + else if(m_desc.index == 41) //filter 2 + return 64; + else if(m_desc.index == 91) // patch volume + return 100; return m_desc.isBipolar ? 64.0f : 0.0f; /* maybe return from ROM state? */ } bool isDiscrete() const override { return m_desc.isDiscrete; } diff --git a/source/jucePlugin/ui/VirusEditor.cpp b/source/jucePlugin/ui/VirusEditor.cpp @@ -168,11 +168,8 @@ VirusEditor::VirusEditor(VirusParameterBinding &_parameterBinding, AudioPluginAu m_patchName.onTextChange = [this]() { auto text = m_patchName.getText(); if(text.trim().length() > 0) { - if (text == "/pv") { // stupid debug thing to remove later - m_paramDisplayLocal = !m_paramDisplayLocal; - return; - } m_controller.setSinglePresetName(m_controller.getCurrentPart(), text); + m_partList->refreshParts(); } }; addAndMakeVisible(m_patchName); diff --git a/source/jucePlugin/ui/Virus_Buttons.cpp b/source/jucePlugin/ui/Virus_Buttons.cpp @@ -34,7 +34,7 @@ namespace Buttons setColour(DrawableButton::ColourIds::backgroundColourId, Colours::transparentBlack); setColour(DrawableButton::ColourIds::backgroundOnColourId, Colours::transparentBlack); setClickingTogglesState(true); - on->setOriginWithOriginalSize({0, -17}); + off->setOriginWithOriginalSize({0, -17}); setImages(off.get(), nullptr, on.get(), nullptr, on.get()); }