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

Tremolo AudioEffect. More...

#include <AudioEffect.h>

Inheritance diagram for audio_tools::Tremolo:
audio_tools::AudioEffect

Public Member Functions

 Tremolo (const Tremolo &copy)=default
 
 Tremolo (int16_t duration_ms=2000, uint8_t depthPercent=50, uint32_t sampleRate=44100)
 Tremolo constructor - use e.g. duration_ms=2000; depthPercent=50; sampleRate=44100.
 
Tremoloclone ()
 
uint8_t depth ()
 
int16_t duration ()
 
effect_t process (effect_t input)
 calculates the effect output from the input More...
 
void setDepth (uint8_t percent)
 
void setDuration (int16_t ms)
 
- 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

int32_t count = 0
 
int16_t duration_ms
 
int16_t inc = 1
 
uint8_t p_percent
 
int32_t rate_count_half
 
uint32_t sampleRate
 
- 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::AudioEffect
int16_t clip (int32_t in, int16_t clipLimit=32767, int16_t resultLimit=32767)
 generic clipping method
 
void copyParent (AudioEffect *copy)
 

Detailed Description

Tremolo AudioEffect.

Author
Phil Schatzmann

Member Function Documentation

◆ clone()

Tremolo * audio_tools::Tremolo::clone ( )
inlinevirtual

◆ process()

effect_t audio_tools::Tremolo::process ( effect_t  in)
inlinevirtual

calculates the effect output from the input

Implements audio_tools::AudioEffect.


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