NeuralPi

Raspberry Pi guitar pedal using neural networks to emulate real amps and effects
Log | Files | Refs | Submodules | README

commit cc003e38bf3f9c0cba94b706128d80cc4accea46
parent 059817ec03559b0559f0c27136dfb49bf8a89d3f
Author: keith <kbloemer89@gmail.com>
Date:   Thu, 21 Oct 2021 11:31:39 -0500

Fixed gain logic

Diffstat:
MSource/PluginProcessor.cpp | 4+++-
MSource/RTNeuralLSTM.cpp | 1-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp @@ -204,7 +204,9 @@ void NeuralPiAudioProcessor::processBlock (AudioBuffer<float>& buffer, MidiBuffe auto ir = static_cast<float> (irParam->get()); ir_index = getIrIndex(ir); - //buffer.applyGain(gain * 2.0); + if (LSTM.input_size == 1) { + buffer.applyGain(gain * 2.0); + } eq4band.setParameters(bass, mid, treble, presence);// Better to move this somewhere else? Only need to set when value changes eq4band.process(buffer.getReadPointer(0), buffer.getWritePointer(0), midiMessages, numSamples, numInputChannels, sampleRate); diff --git a/Source/RTNeuralLSTM.cpp b/Source/RTNeuralLSTM.cpp @@ -99,5 +99,4 @@ void RT_LSTM::process(const float* inData, float param, float* outData, int numS inArray[1] = param; outData[i] = model_cond1.forward(inArray) + inData[i]; } - }