commit 93789b49caaed408f4d82a813bd75b132c50a605
parent 4c7ca0c6ede0129915b740f6a6ad6d2e6233a9c6
Author: keith <kbloemer89@gmail.com>
Date: Thu, 22 Jul 2021 06:32:17 -0500
Updated ir process logic, output volume
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp
@@ -207,7 +207,7 @@ void NeuralPiAudioProcessor::processBlock (AudioBuffer<float>& buffer, MidiBuffe
}
// Process IR
- if (ir_state == true) {
+ if (ir_state == true && num_irs > 0) {
if (current_ir_index != ir_index) {
loadIR(irFiles[ir_index]);
current_ir_index = ir_index;
@@ -215,6 +215,9 @@ void NeuralPiAudioProcessor::processBlock (AudioBuffer<float>& buffer, MidiBuffe
auto block = dsp::AudioBlock<float>(buffer).getSingleChannelBlock(0);
auto context = juce::dsp::ProcessContextReplacing<float>(block);
cabSimIR.process(context);
+
+ // IR generally makes output quieter, add volume here to make ir on/off volume more even
+ buffer.applyGain(2.0);
}
// Master Volume