commit f15dccad01abd9f40c480327c8db0699e6a96e48
parent d1a60497cac57a926088849d281b72e4a7b679df
Author: Keith <[email protected]>
Date: Wed, 9 Sep 2020 12:56:18 -0500
Fixed Treble and Presence knob logic
Diffstat:
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/plugins/SmartAmp/Source/PluginEditor.cpp b/plugins/SmartAmp/Source/PluginEditor.cpp
@@ -282,14 +282,20 @@ void WaveNetVaAudioProcessorEditor::sliderValueChanged(Slider* slider)
processor.set_ampLeadDrive(slider->getValue());
else if (slider == &MasterKnob)
processor.set_ampMaster(slider->getValue());
- else if (slider == &CleanBassKnob || slider == &CleanMidKnob || slider == &LeadTrebleKnob || slider == &PresenceKnob) {
+ else if (slider == &CleanBassKnob || slider == &CleanMidKnob || slider == &CleanTrebleKnob) {
if (processor.amp_lead == 1)
processor.set_ampEQ(ampCleanBassKnob.getValue(), ampCleanMidKnob.getValue(), ampCleanTrebleKnob.getValue(), ampPresenceKnob.getValue());
}
- else if (slider == &LeadBassKnob || slider == &LeadMidKnob || slider == &LeadTrebleKnob || slider == &PresenceKnob) {
+ else if (slider == &LeadBassKnob || slider == &LeadMidKnob || slider == &LeadTrebleKnob) {
if (processor.amp_lead == 0)
processor.set_ampEQ(ampLeadBassKnob.getValue(), ampLeadMidKnob.getValue(), ampLeadTrebleKnob.getValue(), ampPresenceKnob.getValue());
}
+ else if (slider == &PresenceKnob) {
+ if (processor.amp_lead == 1)
+ processor.set_ampEQ(ampCleanBassKnob.getValue(), ampCleanMidKnob.getValue(), ampCleanTrebleKnob.getValue(), ampPresenceKnob.getValue());
+ else if (processor.amp_lead == 0)
+ processor.set_ampEQ(ampLeadBassKnob.getValue(), ampLeadMidKnob.getValue(), ampLeadTrebleKnob.getValue(), ampPresenceKnob.getValue());
+ }
}
diff --git a/plugins/SmartAmp/Source/PluginProcessor.cpp b/plugins/SmartAmp/Source/PluginProcessor.cpp
@@ -162,10 +162,10 @@ void WaveNetVaAudioProcessor::processBlock (AudioBuffer<float>& buffer, MidiBuff
// Master Volume
buffer.applyGain(ampMaster);
- }
- if (amp_lead == 1) {// add extra clean boost because model is very quiet
- buffer.applyGain(15.0);
+ if (amp_lead == 1) {// add extra clean boost because this particular clean model is very quiet
+ buffer.applyGain(15.0);
+ }
}