SynthLab SDK
SynthLab::DelayLine Class Reference

Public Member Functions

void clear ()
 
void reset (double _sampleRate, double minimumPitch=MIDI_NOTE_0_FREQ)
 reset the delay, calculate a new length based on sample rate and minimum pitch More...
 
void setDelayInSamples (double _delaySamples)
 set delay time in samples; used to access the delay when reading More...
 
void writeDelay (double xn)
 write a value into the top of the delay More...
 
double readDelay ()
 read a delayed value at the location specified in the call to setDelayInSamples() More...
 

Member Function Documentation

◆ clear()

void SynthLab::DelayLine::clear ( )
inline

flush the delay with 0s

◆ readDelay()

double SynthLab::DelayLine::readDelay ( )
inline

read a delayed value at the location specified in the call to setDelayInSamples()

Returns
the freshly read delay value

◆ reset()

void SynthLab::DelayLine::reset ( double  _sampleRate,
double  minimumPitch = MIDI_NOTE_0_FREQ 
)
inline

reset the delay, calculate a new length based on sample rate and minimum pitch

Parameters
_sampleRatefs
minimumPitchpitch in Hz of the lowest note that could fit into this delay line

◆ setDelayInSamples()

void SynthLab::DelayLine::setDelayInSamples ( double  _delaySamples)
inline

set delay time in samples; used to access the delay when reading

Parameters
_delaySamplesdelay in samples, may be fractional

◆ writeDelay()

void SynthLab::DelayLine::writeDelay ( double  xn)
inline

write a value into the top of the delay

Parameters
xnvalue to write

The documentation for this class was generated from the following file: