arduino-audio-tools
|
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>
Public Member Functions | |
Delay (const Delay ©) | |
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 | |
Delay * | clone () |
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.0f |
float | duration = 0.0f |
float | feedback = 0.0f |
int | id_value = -1 |
float | sampleRate = 0.0f |
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.