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

Delay/Echo AudioEffect. See https://wiki.analog.com/resources/tools-software/sharc-audio-module/baremetal/delay-effect-tutorial Howver the dry value and wet value were replace by the depth parameter. More...

#include <AudioEffect.h>

Inheritance diagram for Delay:
AudioEffect

Public Member Functions

 Delay (const Delay &copy)
 
 Delay (uint16_t duration_ms=1000, float depth=0.5, float feedbackAmount=1.0, uint32_t sampleRate=44100)
 e.g. depth=0.5, ms=1000, sampleRate=44100
 
virtual bool active ()
 determines if the effect is active
 
Delayclone ()
 
float getDepth ()
 
int16_t getDuration ()
 
float getFeedback ()
 
float getSampleRate ()
 
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 (float value)
 
void setDuration (int16_t dur)
 
void setFeedback (float feed)
 
void setId (int id)
 Allows to identify an effect.
 
void setSampleRate (int32_t sample)
 

Protected Member Functions

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

Protected Attributes

bool active_flag = true
 
Vector< effect_t > buffer {0}
 
size_t delay_len_samples = 0
 
size_t delay_line_index = 0
 
float depth = 0.0
 
float duration = 0.0
 
float feedback = 0.0
 
int id_value = -1
 
float sampleRate = 0.0
 

Detailed Description

Delay/Echo AudioEffect. See https://wiki.analog.com/resources/tools-software/sharc-audio-module/baremetal/delay-effect-tutorial Howver the dry value and wet value were replace by the depth parameter.

Author
Phil Schatzmann

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