Skip to content

Class daisysp::DelayLine

template <typename T, size_t max_size>

ClassList > daisysp > DelayLine

More...

  • #include <delayline.h>

Public Functions

Type Name
const T Allpass (const T sample, size_t delay, const T coefficient)
DelayLine ()
void Init ()
const T Read () const
const T Read (float delay) const
const T ReadHermite (float delay) const
void Reset ()
void SetDelay (size_t delay)
void SetDelay (float delay)
void Write (const T sample)
~DelayLine ()

Detailed Description

Simple Delay line. November 2019

Converted to Template December 2019

declaration example: (1 second of floats)

DelayLine<float, SAMPLE_RATE> del;

By: shensley

Public Functions Documentation

function Allpass

inline const  T daisysp::DelayLine::Allpass (
    const  T sample,
    size_t delay,
    const  T coefficient
) 

function DelayLine

inline daisysp::DelayLine::DelayLine () 

function Init

inline void daisysp::DelayLine::Init () 

initializes the delay line by clearing the values within, and setting delay to 1 sample.


function Read [½]

inline const  T daisysp::DelayLine::Read () const

returns the next sample of type T in the delay line, interpolated if necessary.


function Read [2/2]

inline const  T daisysp::DelayLine::Read (
    float delay
) const

Read from a set location


function ReadHermite

inline const  T daisysp::DelayLine::ReadHermite (
    float delay
) const

function Reset

inline void daisysp::DelayLine::Reset () 

clears buffer, sets write ptr to 0, and delay to 1 sample.


function SetDelay [½]

inline void daisysp::DelayLine::SetDelay (
    size_t delay
) 

sets the delay time in samples If a float is passed in, a fractional component will be calculated for interpolating the delay line.


function SetDelay [2/2]

inline void daisysp::DelayLine::SetDelay (
    float delay
) 

sets the delay time in samples If a float is passed in, a fractional component will be calculated for interpolating the delay line.


function Write

inline void daisysp::DelayLine::Write (
    const  T sample
) 

writes the sample of type T to the delay line, and advances the write ptr


function ~DelayLine

inline daisysp::DelayLine::~DelayLine () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Utility/delayline.h