EnvelopeFilter.
More...
#include <AudioEffectsSuite.h>
EnvelopeFilter.
- Author
- Matthew Hamilton
- Copyright
- MIT License
◆ EnvelopeFilter()
◆ ~EnvelopeFilter()
◆ 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()
Implemented in SimpleLPF, Boost, Distortion, Fuzz, Tremolo, Delay, ADSRGain, PitchShift, Compressor, SimpleChorus, FilteredDelay, SimpleDelay, SimpleFlanger, STKChorus, STKEcho, STKFreeVerb, STKChowningReverb, STKNReverb, STKPerryReverb, STKLentPitShift, and STKPitShift.
◆ 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()
main process method: applies an envelope filter to the incoming signal sample @params sample incoming signal sample value
- Returns
- processed sample value
Reimplemented from FilterEffectBase.
◆ 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
◆ envelopeFollower
this follows the signal envelope and alters the internallow pass filter cutoff
◆ 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: