@@ -119,7 +119,7 @@ WaveNetVaAudioProcessorEditor::WaveNetVaAudioProcessorEditor (WaveNetVaAudioProc
119
119
ampLeadTrebleKnob.setLookAndFeel (&SilverKnobLAF);
120
120
ampLeadTrebleKnob.addListener (this );
121
121
ampLeadTrebleKnob.setRange (-8.0 , 8.0 );
122
- ampLeadTrebleKnob.setValue (processor.ampCleanTrebleKnobState );
122
+ ampLeadTrebleKnob.setValue (processor.ampLeadTrebleKnobState );
123
123
ampLeadTrebleKnob.setSliderStyle (juce::Slider::SliderStyle::RotaryVerticalDrag);
124
124
ampLeadTrebleKnob.setTextBoxStyle (juce::Slider::TextEntryBoxPosition::NoTextBox, false , 50 , 20 );
125
125
ampLeadTrebleKnob.setNumDecimalPlacesToDisplay (1 );
@@ -284,10 +284,18 @@ void WaveNetVaAudioProcessorEditor::sliderValueChanged(Slider* slider)
284
284
else if (slider == &CleanBassKnob || slider == &CleanMidKnob || slider == &CleanTrebleKnob) {
285
285
if (processor.amp_lead == 1 )
286
286
processor.set_ampEQ (ampCleanBassKnob.getValue (), ampCleanMidKnob.getValue (), ampCleanTrebleKnob.getValue (), ampPresenceKnob.getValue ());
287
+ // Set knob states for saving positions when closing/reopening GUI
288
+ processor.ampCleanBassKnobState = ampCleanBassKnob.getValue ();
289
+ processor.ampCleanMidKnobState = ampCleanMidKnob.getValue ();
290
+ processor.ampCleanTrebleKnobState = ampCleanTrebleKnob.getValue ();
287
291
}
288
292
else if (slider == &LeadBassKnob || slider == &LeadMidKnob || slider == &LeadTrebleKnob) {
289
293
if (processor.amp_lead == 0 )
290
294
processor.set_ampEQ (ampLeadBassKnob.getValue (), ampLeadMidKnob.getValue (), ampLeadTrebleKnob.getValue (), ampPresenceKnob.getValue ());
295
+ // Set knob states for saving positions when closing/reopening GUI
296
+ processor.ampLeadBassKnobState = ampLeadBassKnob.getValue ();
297
+ processor.ampLeadMidKnobState = ampLeadMidKnob.getValue ();
298
+ processor.ampLeadTrebleKnobState = ampLeadTrebleKnob.getValue ();
291
299
}
292
300
else if (slider == &PresenceKnob) {
293
301
if (processor.amp_lead == 1 )
0 commit comments