SmartGuitarAmp

Guitar plugin made with JUCE that uses neural networks to emulate a tube amplifier
Log | Files | Refs | Submodules | README

commit f15dccad01abd9f40c480327c8db0699e6a96e48
parent d1a60497cac57a926088849d281b72e4a7b679df
Author: Keith <[email protected]>
Date:   Wed,  9 Sep 2020 12:56:18 -0500

Fixed Treble and Presence knob logic

Diffstat:
Mplugins/SmartAmp/Source/PluginEditor.cpp | 10++++++++--
Mplugins/SmartAmp/Source/PluginProcessor.cpp | 6+++---
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 == &ampMasterKnob) processor.set_ampMaster(slider->getValue()); - else if (slider == &ampCleanBassKnob || slider == &ampCleanMidKnob || slider == &ampLeadTrebleKnob || slider == &ampPresenceKnob) { + else if (slider == &ampCleanBassKnob || slider == &ampCleanMidKnob || slider == &ampCleanTrebleKnob) { if (processor.amp_lead == 1) processor.set_ampEQ(ampCleanBassKnob.getValue(), ampCleanMidKnob.getValue(), ampCleanTrebleKnob.getValue(), ampPresenceKnob.getValue()); } - else if (slider == &ampLeadBassKnob || slider == &ampLeadMidKnob || slider == &ampLeadTrebleKnob || slider == &ampPresenceKnob) { + else if (slider == &ampLeadBassKnob || slider == &ampLeadMidKnob || slider == &ampLeadTrebleKnob) { if (processor.amp_lead == 0) processor.set_ampEQ(ampLeadBassKnob.getValue(), ampLeadMidKnob.getValue(), ampLeadTrebleKnob.getValue(), ampPresenceKnob.getValue()); } + else if (slider == &ampPresenceKnob) { + 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); + } }