arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
audio_tools::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 audio_tools::Delay:
audio_tools::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, bool zeroIfBufferEmpty=false)
 e.g. depth=0.5, ms=1000, sampleRate=44100
 
Delayclone ()
 
float getDepth ()
 
int16_t getDuration ()
 
float getFeedback ()
 
float getSampleRate ()
 
effect_t process (effect_t input)
 calculates the effect output from the input More...
 
void setDepth (float value)
 
void setDuration (int16_t dur)
 
void setFeedback (float feed)
 
void setSampleRate (int32_t sample)
 
- 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 Member Functions

void updateBufferSize ()
 
- 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)
 

Protected Attributes

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
 
float sampleRate = 0.0
 
- Protected Attributes inherited from audio_tools::AudioEffect
bool active_flag = true
 
int id_value = -1
 

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

Member Function Documentation

◆ clone()

Delay * audio_tools::Delay::clone ( )
inlinevirtual

◆ process()

effect_t audio_tools::Delay::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: