arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AudioEffect Class Referenceabstract

Abstract Base class for Sound Effects. More...

#include <AudioEffect.h>

Inheritance diagram for AudioEffect:
ADSRGain Boost Compressor Delay Distortion EffectSuiteBase Fuzz PitchShift STKChorus STKChowningReverb STKEcho STKEffect STKFreeVerb STKLentPitShift STKNReverb STKPerryReverb STKPitShift Tremolo

Public Member Functions

 AudioEffect ()=default
 
virtual ~AudioEffect ()=default
 
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
 
virtual void setActive (bool value)
 sets the effect active/inactive
 
void setId (int id)
 Allows to identify an effect.
 

Protected Member Functions

int16_t clip (int32_t in, int16_t clipLimit=32767, int16_t resultLimit=32767)
 generic clipping method
 
void copyParent (AudioEffect *copy)
 

Protected Attributes

bool active_flag = true
 
int id_value = -1
 

Detailed Description

Abstract Base class for Sound Effects.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ AudioEffect()

AudioEffect ( )
default

◆ ~AudioEffect()

virtual ~AudioEffect ( )
virtualdefault

Member Function Documentation

◆ active()

virtual bool active ( )
inlinevirtual

determines if the effect is active

◆ clip()

int16_t clip ( int32_t  in,
int16_t  clipLimit = 32767,
int16_t  resultLimit = 32767 
)
inlineprotected

generic clipping method

◆ clone()

virtual AudioEffect * clone ( )
pure virtual

◆ copyParent()

void copyParent ( AudioEffect copy)
inlineprotected

◆ id()

int id ( )
inline

Allows to identify an effect.

◆ process()

virtual effect_t process ( effect_t  in)
pure virtual

◆ setActive()

virtual void setActive ( bool  value)
inlinevirtual

sets the effect active/inactive

◆ setId()

void setId ( int  id)
inline

Allows to identify an effect.

Member Data Documentation

◆ active_flag

bool active_flag = true
protected

◆ id_value

int id_value = -1
protected

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