DaisySP
|
#include <delayline.h>
Public Member Functions | |
void | Init () |
void | Reset () |
void | SetDelay (size_t delay) |
void | SetDelay (float delay) |
void | Write (const T sample) |
const T | Read () const |
const T | Read (float delay) const |
const T | ReadHermite (float delay) const |
const T | Allpass (const T sample, size_t delay, const T coefficient) |
Simple Delay line. November 2019
Converted to Template December 2019
declaration example: (1 second of floats)
DelayLine<float, SAMPLE_RATE> del;
By: shensley
|
inline |
initializes the delay line by clearing the values within, and setting delay to 1 sample.
|
inline |
returns the next sample of type T in the delay line, interpolated if necessary.
|
inline |
Read from a set location
|
inline |
clears buffer, sets write ptr to 0, and delay to 1 sample.
|
inline |
sets the delay time in samples If a float is passed in, a fractional component will be calculated for interpolating the delay line.
|
inline |
sets the delay time in samples If a float is passed in, a fractional component will be calculated for interpolating the delay line.
|
inline |
writes the sample of type T to the delay line, and advances the write ptr