commit 1b7a81e27157dbabe36b701cb40673de9eb248fd
parent 9ccec59e5264371d66fa9aaf288fe37bb93d80c5
Author: keith <kbloemer89@gmail.com>
Date: Thu, 12 Nov 2020 20:10:03 -0600
Adjusted clean gain, replaced string compare with int compare
Diffstat:
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/plugins/SmartAmp/Source/PluginEditor.cpp b/plugins/SmartAmp/Source/PluginEditor.cpp
@@ -158,7 +158,7 @@ WaveNetVaAudioProcessorEditor::WaveNetVaAudioProcessorEditor (WaveNetVaAudioProc
setSize (1085, 660);
// Load the preset wavenet json model from the project resources
- if (processor.loaded_tone_name == "") {
+ if (processor.custom_tone == 0) {
processor.loadConfigAmp();
} else {
processor.loadConfig(processor.loaded_tone);
@@ -267,6 +267,7 @@ void WaveNetVaAudioProcessorEditor::loadButtonClicked()
modelLabel.setText(fname, juce::NotificationType::dontSendNotification);
processor.loaded_tone = file;
processor.loaded_tone_name = fname;
+ processor.custom_tone = 1;
}
}
@@ -305,6 +306,7 @@ void WaveNetVaAudioProcessorEditor::ampCleanLeadButtonClicked() {
}
modelLabel.setText("", juce::NotificationType::dontSendNotification);
processor.loaded_tone_name = "";
+ processor.custom_tone = 0;
repaint();
}
diff --git a/plugins/SmartAmp/Source/PluginProcessor.cpp b/plugins/SmartAmp/Source/PluginProcessor.cpp
@@ -163,9 +163,9 @@ void WaveNetVaAudioProcessor::processBlock (AudioBuffer<float>& buffer, MidiBuff
// Master Volume
buffer.applyGain(ampMaster);
- //if (amp_lead == 1) {// add extra clean boost because this particular clean model is very quiet
- //buffer.applyGain(15.0);
- //}
+ if (amp_lead == 1 && custom_tone == 0 ) {// add extra clean boost because this particular clean model is very quiet
+ buffer.applyGain(8.0);
+ }
}
diff --git a/plugins/SmartAmp/Source/PluginProcessor.h b/plugins/SmartAmp/Source/PluginProcessor.h
@@ -75,6 +75,7 @@ public:
// Pedal/amp states
int amp_state = 1; // 0 = off, 1 = on
int amp_lead = 1; // 1 = clean, 0 = lead
+ int custom_tone = 0; // 0 = custom tone loaded, 1 = default channel tone
File loaded_tone;
juce::String loaded_tone_name;