arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
audio_tools::EnvelopeFilter Class Reference

EnvelopeFilter. More...

#include <AudioEffectsSuite.h>

Inheritance diagram for audio_tools::EnvelopeFilter:
audio_tools::FilterEffectBase audio_tools::EffectSuiteBase audio_tools::AudioEffect

Public Member Functions

 EnvelopeFilter ()
 
 ~EnvelopeFilter ()=default
 
effectsuite_t processDouble (effectsuite_t sample)
 
- 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.
 

Protected Attributes

SimpleLPF envelopeFollower
 
- 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
 

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)
 
- Static Protected Attributes inherited from audio_tools::FilterEffectBase
static constexpr const effectsuite_t pi = 3.141592653589793
 

Detailed Description

EnvelopeFilter.

Author
Matthew Hamilton

Constructor & Destructor Documentation

◆ EnvelopeFilter()

audio_tools::EnvelopeFilter::EnvelopeFilter ( )
inline

Constructor

◆ ~EnvelopeFilter()

audio_tools::EnvelopeFilter::~EnvelopeFilter ( )
default

Desructor

Member Function Documentation

◆ processDouble()

effectsuite_t audio_tools::EnvelopeFilter::processDouble ( effectsuite_t  sample)
inlinevirtual

main process method: applies an envelope filter to the incoming signal sample @params sample incoming signal sample value

Returns
processed sample value

Reimplemented from audio_tools::FilterEffectBase.

Member Data Documentation

◆ envelopeFollower

SimpleLPF audio_tools::EnvelopeFilter::envelopeFollower
protected

this follows the signal envelope and alters the internallow pass filter cutoff


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