No Matches
Public Member Functions | List of all members
audio_tools::SimpleLPF Class Reference

SimpleLPF. More...

#include <AudioEffectsSuite.h>

Inheritance diagram for audio_tools::SimpleLPF:
audio_tools::FilterEffectBase audio_tools::EffectSuiteBase audio_tools::AudioEffect audio_tools::SimpleChorus

Public Member Functions

 SimpleLPF (effectsuite_t cutoff, int order)
 SimpleLPF (SimpleLPF &copy)=default
 ~SimpleLPF ()=default
SimpleLPFclone ()
- Public Member Functions inherited from audio_tools::FilterEffectBase
 FilterEffectBase ()
 FilterEffectBase (FilterEffectBase &copy)=default
 ~FilterEffectBase ()=default
virtual effectsuite_t applyFilter (effectsuite_t sampVal)
effectsuite_t envelope (effectsuite_t sample)
void printBuffers ()
void printCoefs ()
virtual effect_t process (effect_t inputSample) override
 see applyFilter More...
virtual effectsuite_t processDouble (effectsuite_t inputSample) override
 Main process block for applying audio effect. More...
bool setChebyICoefficients (effectsuite_t cutFreq, bool shelfType, effectsuite_t ripple)
- Public Member Functions inherited from audio_tools::AudioEffect
virtual bool active ()
 determines if the effect is active
virtual AudioEffectclone ()=0
int id ()
 Allows to identify an effect.
virtual effect_t process (effect_t in)=0
 calculates the effect output from the input More...
virtual void setActive (bool value)
 sets the effect active/inactive
void setId (int id)
 Allows to identify an effect.

Additional Inherited Members

- Protected Member Functions inherited from audio_tools::FilterEffectBase
void allocateBufferMemory ()
bool changeChebyICoefficients (effectsuite_t cutFreq, bool shelfType, effectsuite_t ripple, int poles)
void clearMemory ()
void incBufferIndex ()
effectsuite_t rms (effectsuite_t sample)
bool setSimpleLpf (int order)
- Protected Member Functions inherited from audio_tools::AudioEffect
int16_t clip (int32_t in, int16_t clipLimit=32767, int16_t resultLimit=32767)
 generic clipping method
void copyParent (AudioEffect *copy)
- Protected Attributes inherited from audio_tools::FilterEffectBase
int bufferIndex = 0
int filterOrder = 0
effectsuite_t * firBuffer = 0
effectsuite_t * firCoefficients = 0
effectsuite_t * firTemp = 0
effectsuite_t * iirBuffer = 0
effectsuite_t * iirCoefficients = 0
effectsuite_t * iirTemp = 0
effectsuite_t * rmsBuffer = new effectsuite_t[rmsWindowSize]
int rmsBufferIndex = 0
const int rmsWindowSize = 128
int samplingRate = 0
- Protected Attributes inherited from audio_tools::AudioEffect
bool active_flag = true
int id_value = -1
- Static Protected Attributes inherited from audio_tools::FilterEffectBase
static constexpr const effectsuite_t pi = 3.141592653589793

Detailed Description


Matthew Hamilton

Constructor & Destructor Documentation

◆ SimpleLPF()

audio_tools::SimpleLPF::SimpleLPF ( effectsuite_t  cutoff,
int  order 

Constructor: Intialised with the order of FIR filter minimum cutoff frequency is 1/sampleRate

cutoffnormalised cutoff frequency [0, 1);
orderfilter order

◆ ~SimpleLPF()

audio_tools::SimpleLPF::~SimpleLPF ( )


Member Function Documentation

◆ clone()

SimpleLPF * audio_tools::SimpleLPF::clone ( )

The documentation for this class was generated from the following file: