SmartGuitarAmp

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

commit 229faae57d82fcc621acb5b1cf743c6a31b440d9
parent 061f86b61af016083e69fb18e7e2001c4693ed6a
Author: Keith Bloemer <32459398+keyth72@users.noreply.github.com>
Date:   Sun, 11 Oct 2020 09:51:41 -0500

Delete ResonantLowpassFilter.cpp
Diffstat:
Dplugins/SmartAmp/Source/ResonantLowpassFilter.cpp | 42------------------------------------------
1 file changed, 0 insertions(+), 42 deletions(-)

diff --git a/plugins/SmartAmp/Source/ResonantLowpassFilter.cpp b/plugins/SmartAmp/Source/ResonantLowpassFilter.cpp @@ -1,41 +0,0 @@ -/* - ============================================================================== - - ResonantLowpassFilter - - ============================================================================== -*/ - -#include "ResonantLowpassFilter.h" - -ResonantLowpassFilter::ResonantLowpassFilter() -{ - setParameters(10000.0, 44100); -} - -void ResonantLowpassFilter::process (AudioBuffer<float>& buffer, - MidiBuffer& midiMessages, - const int numSamples, - const int numInputChannels) -{ - for (int channel = 0; channel < numInputChannels; ++channel) { - float* channelData = buffer.getWritePointer(channel); - // For each sample in the block of audio, apply filter - for (int sample = 0; sample < numSamples; ++sample) { - const float in = channelData[sample]; - n3 = n3 + cut_lp * (in - n3 + fb_lp * (n3 - n4)); - n4 = n4 + cut_lp * (n3 - n4); - // Write output to audio buffer - channelData[sample] = n4; - } - } -} - -void ResonantLowpassFilter::setParameters(float toneKnobValue, float sampleRate) -{ - toneFrequency = toneKnobValue; - cut_lp = toneFrequency * 2 / sampleRate; - fb_lp = res_lp / (1 - cut_lp); - n3 = 0; - n4 = 0; -} -\ No newline at end of file