DigitalDelay

A general purpose Digital Delay with support for external feedback, fractional delay, and feedback path effects.

class DigitalDelay : AudioEffect {
float* buffer;
float _sampleRate;
float _feedback;
float _mix;
size_t _size;
float _delayInSamples;
float _delayInMS;
long _writeIndex;
long _readIndex;
bool _useExternalFeedback;
float _feedbackIn;
Vec!AudioEffect feedbackFX;
float maxDelayTime;
}

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

setDelay
void setDelay(float msDelay)

calculates and sets the number of samples required.

setParams
void setParams(float msDelay, float feedback, float mix)

Sets delay time, feedback, and mix

setSampleRate
void setSampleRate(float sampleRate)

Set the sample rate and initialize the buffer.

toString
string toString()

used for debuging purposes.

Inherited Members

From AudioEffect

getNextSample
float getNextSample(const float input)

Process a sample that is passed to the processor, and return the next sample.

reset
void reset()

Should be used to free any delay elements or do any setup before play begins.

setSampleRate
void setSampleRate(float sampleRate)

Meta