class: mDelayLine
a general purpose delay line
Description
Uses a circular buffer of samples.
Template Parameters
template<class T = int32_t, meap_interpolation INTERP = mINTERP_NONE>T: datatype used in delay line
INTERP: kind of interpolation used when indexing non-integer samples. mINTERP_NONE or mINTERP_LINEAR
Class Methods
Constructor
mDelayLine(int32_t max_delay_length, float delay_length)max_delay_length: Constructor will allocate a delay buffer of this size. Cannot be changed. This is the maximum length of delay that this delay line can handle
delay_length: Actual delay length you want. Can be changed
void setDelay(float delay_length)Sets delay length in samples
T at(float index)Returns value that is index samples into the delay line. index must be less than max_delay_samples
T next(T in_sample)Returns sample at the end of the delay line and writes a new sample into the beginning of it.
Example