SimpleLPF.
More...
#include <AudioEffectsSuite.h>
SimpleLPF.
- Author
- Matthew Hamilton
- Copyright
- MIT License
◆ SimpleLPF() [1/2]
Constructor: Intialised with the order of FIR filter minimum cutoff frequency is 1/sampleRate
- Parameters
-
| cutoff | normalised cutoff frequency [0, 1); |
| order | filter order |
◆ SimpleLPF() [2/2]
◆ ~SimpleLPF()
◆ active()
determines if the effect is active
◆ allocateBufferMemory()
| void allocateBufferMemory |
( |
| ) |
|
|
inlineprotectedinherited |
will allocate memory to a buffer given the current filter order and set all values == 0.00
◆ applyFilter()
with the current filter coefficients this method filters a sample then stores it the sample Buffer and increments the index
- Parameters
-
| sampVal | is the sample to be processed |
- Returns
- filtered audio sample
◆ changeChebyICoefficients()
set firCoefficients and iirCoefficients for required chebyshev type I filter sampleBuffer memory is also set @params cutFreq normalised cutoff frequency (0 < x < .5) @params shelfType bool filter shelf type, false = low pass, true = high pass @params ripple percentage ripple (<.2929) @params poles number of poles
- Returns
- boolean false on error and true on success
◆ clearMemory()
checks internal memory storage of filter coeffcients and deletes if required
◆ clip()
◆ clone()
◆ copyParent()
◆ envelope()
detect the envelop of an incoming signal
- Parameters
-
| sample | the incoming signal sample value |
- Returns
- returns envelope dection signal sample value
◆ id()
Allows to identify an effect.
◆ incBufferIndex()
increment the buffer index and wrap it to the filter order
◆ process()
|
|
inlineoverridevirtualinherited |
◆ processDouble()
|
|
inlineoverridevirtualinherited |
Main process block for applying audio effect.
- Parameters
-
| inputSample | The input audio sample for the effect to be applied to |
- Returns
- an audio sample as a effectsuite_t with effect applied
Implements EffectSuiteBase.
Reimplemented in SimpleChorus, FilteredDelay, and EnvelopeFilter.
◆ rms()
root mean square of signal over a specific sample window
◆ setActive()
sets the effect active/inactive
◆ setChebyICoefficients()
◆ setId()
Allows to identify an effect.
◆ setSimpleLpf()
a simple normalised fir low pass filter @params order number of delay coefficients
◆ active_flag
◆ bufferIndex
◆ filterOrder
order of delay filter including the zero delay coefficients
◆ firBuffer
buffer to hold forward delay sample data
◆ firCoefficients
Numerator coefficients in delay filter firCoefficients[0] z^0 coeffcieint firCoefficients[1] z^-1 coefficient
◆ firTemp
hold temporary values for fir coeffcient buffer
◆ id_value
◆ iirBuffer
buffer to hold backward delay sample data
◆ iirCoefficients
◆ iirTemp
hold temporary values for iir coeffcient buffer
◆ rmsBuffer
◆ rmsBufferIndex
current write index of rmsBuffer
◆ rmsWindowSize
window size in samples of rms window
◆ samplingRate
The documentation for this class was generated from the following file: