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

Tremolo AudioEffect. More...

#include <AudioEffect.h>

Inheritance diagram for Tremolo:
AudioEffect

Public Member Functions

 Tremolo (const Tremolo &copy)=default
 
 Tremolo (int16_t duration_ms=2000, uint8_t depthPercent=50, uint32_t sampleRate=44100)
 
virtual bool active ()
 determines if the effect is active
 
Tremoloclone ()
 
uint8_t depth ()
 
int16_t duration ()
 
int id ()
 Allows to identify an effect.
 
effect_t process (effect_t input)
 calculates the effect output from the input
 
virtual void setActive (bool value)
 sets the effect active/inactive
 
void setDepth (uint8_t percent)
 
void setDuration (int16_t ms)
 
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
 
int32_t count = 0
 
int16_t duration_ms
 
int id_value = -1
 
int16_t inc = 1
 
uint8_t p_percent
 
int32_t rate_count_half
 
uint32_t sampleRate
 

Detailed Description

Tremolo AudioEffect.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ Tremolo()

Tremolo ( int16_t  duration_ms = 2000,
uint8_t  depthPercent = 50,
uint32_t  sampleRate = 44100 
)
inline

Tremolo constructor - use e.g. duration_ms=2000; depthPercent=50; sampleRate=44100


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