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 dab0851c3d6b7d6db7aff6c57f9dc53ac967df63
parent 0b11df22bcc851a784445035a12979aeedfed258
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Tue, 28 Dec 2021 21:15:44 +0100

rename getParam to getParamValue as it doesn't return the parameter but its value instead

Diffstat:
Msource/jucePlugin/PluginEditor.cpp | 2+-
Msource/jucePlugin/VirusController.cpp | 4++--
Msource/jucePlugin/VirusController.h | 4++--
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/source/jucePlugin/PluginEditor.cpp b/source/jucePlugin/PluginEditor.cpp @@ -34,7 +34,7 @@ AudioPluginAudioProcessorEditor::AudioPluginAudioProcessorEditor(AudioPluginAudi addAndMakeVisible(m_btMultiMode); m_btSingleMode.setTopLeftPosition(0,0); m_btSingleMode.setSize(120,30); - m_btMultiMode.getToggleStateValue().referTo(*processorRef.getController().getParam(0, 2, 0x7a)); + m_btMultiMode.getToggleStateValue().referTo(*processorRef.getController().getParamValue(0, 2, 0x7a)); const auto isMulti = processorRef.getController().isMultiMode(); m_btSingleMode.setToggleState(!isMulti, juce::dontSendNotification); m_btMultiMode.setToggleState(isMulti, juce::dontSendNotification); diff --git a/source/jucePlugin/VirusController.cpp b/source/jucePlugin/VirusController.cpp @@ -134,7 +134,7 @@ namespace Virus return it->second; } - juce::Value *Controller::getParam(uint8_t ch, uint8_t bank, uint8_t paramIndex) + juce::Value *Controller::getParamValue(uint8_t ch, uint8_t bank, uint8_t paramIndex) { auto *param = findSynthParam(ch, static_cast<uint8_t>(0x70 + bank), paramIndex); if (param == nullptr) @@ -209,7 +209,7 @@ namespace Virus char text[kNameLength + 1]; text[kNameLength] = 0; // termination for (auto pos = 0; pos < kNameLength; ++pos) - text[pos] = static_cast<int>(getParam(part, 1, asciiStart + pos)->getValue()); + text[pos] = static_cast<int>(getParamValue(part, 1, asciiStart + pos)->getValue()); return juce::String(text); } diff --git a/source/jucePlugin/VirusController.h b/source/jucePlugin/VirusController.h @@ -26,12 +26,12 @@ namespace Virus // ch - [0-15] // bank - [0-2] (ABC) // paramIndex - [0-127] - juce::Value *getParam(uint8_t ch, uint8_t bank, uint8_t paramIndex); + juce::Value *getParamValue(uint8_t ch, uint8_t bank, uint8_t paramIndex); // bank - 0-1 (AB) juce::StringArray getSinglePresetNames(int bank) const; juce::StringArray getMultiPresetsName() const; - bool isMultiMode() { return getParam(0, 2, 0x7a)->getValue(); } + bool isMultiMode() { return getParamValue(0, 2, 0x7a)->getValue(); } // part 0 - 15 (ignored when single! 0x40...) void setCurrentPartPreset(uint8_t part, uint8_t bank, uint8_t prg); uint8_t getCurrentPartBank(uint8_t part);