arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Distortion Class Reference

Distortion AudioEffect. More...

#include <AudioEffect.h>

Inheritance diagram for Distortion:
AudioEffect

Public Member Functions

 Distortion (const Distortion &copy)=default
 
 Distortion (int16_t clipThreashold=4990, int16_t maxInput=6500)
 Distortion Constructor: e.g. use clipThreashold 4990 and maxInput=6500.
 
virtual bool active ()
 determines if the effect is active
 
int16_t clipThreashold ()
 
Distortionclone ()
 
int id ()
 Allows to identify an effect.
 
int16_t maxInput ()
 
effect_t process (effect_t input)
 calculates the effect output from the input
 
virtual void setActive (bool value)
 sets the effect active/inactive
 
void setClipThreashold (int16_t th)
 
void setId (int id)
 Allows to identify an effect.
 
void setMaxInput (int16_t maxInput)
 

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
 
int16_t max_input
 
int16_t p_clip_threashold
 

Detailed Description

Distortion AudioEffect.

Author
Phil Schatzmann

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