Skip to content

Commit

Permalink
Bugfix for dissapearing model names after clicking ArrowButtons
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwitte committed Apr 28, 2024
1 parent ba8496a commit 9c91b46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 1 addition & 3 deletions source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ AudioPluginAudioProcessor::AudioPluginAudioProcessor()
grainDelay1(1),
grainDelay2(2),
processorCompressor(parameters)
{
// resets the state

{

network1Name = "Funk";
network2Name = "Djembe";
Expand Down
7 changes: 1 addition & 6 deletions source/ui/CustomComponents/XYPad/XYPad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ void XYPad::resized()

void XYPad::parameterChanged(const juce::String& parameterID, float newValue)
{
if (parameterID == PluginParameters::SELECT_NETWORK1_ID.getParamID() && newValue == 0.f) {
updateKnobName(1, network1Name);
} else if (parameterID == PluginParameters::SELECT_NETWORK2_ID.getParamID() && newValue == 0.f) {
updateKnobName(2, network2Name);
}


if (parameterID == PluginParameters::FADE_ID.getParamID()){
float fadeValue = parameters.getRawParameterValue(PluginParameters::FADE_ID.getParamID())->load();
onModelMixChange(fadeValue);
Expand Down

0 comments on commit 9c91b46

Please sign in to comment.