Delayline

Allow to sample signal back in time. This delay-line has a twin write index, so that the read pointer can read a contiguous memory area. ____________________________________________________________________________________ | | _index | | readPointer = _index + half size | |

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

feedBuffer
void feedBuffer(const(T)[] incoming)

Adds several samples at end of delay.

feedSample
void feedSample(T incoming)

Adds a new sample at end of delay.

initialize
void initialize(int numSamples)

Initialize the delay line. Can delay up to count samples.

nextBuffer
void nextBuffer(const(T)* input, T* output, int frames)

Combined feed + sampleFull. Uses the delay line as a fixed delay of count samples.

nextSample
T nextSample(T incoming)

Combined feed + sampleFull. Uses the delay line as a fixed delay of count samples.

readPointer
const(T)* readPointer()
resize
void resize(int numSamples)

Resize the delay line. Can delay up to count samples. The state is cleared.

sampleFull
T sampleFull(int delay)

Random access sampling of the delay-line at integer points. Delay 0 = last entered sample with feed().

sampleFullBuffer
void sampleFullBuffer(int delayOfMostRecentSample, float* outBuffer, int frames)

Random access sampling of the delay-line at integer points, extract a time slice. Delay 0 = last entered sample with feed().

sampleHermite
T sampleHermite(float delay)

Random access sampling of the delay-line with a 3rd order polynomial.

sampleLinear
T sampleLinear(float delay)

Random access sampling of the delay-line with linear interpolation.

sampleSpline3
T sampleSpline3(float delay)

Third-order spline interpolation http://musicdsp.org/showArchiveComment.php?ArchiveID=62

sampleSpline4
T sampleSpline4(float delay)

4th order spline interpolation http://musicdsp.org/showArchiveComment.php?ArchiveID=60

Meta