Gin
|
Audio Delay with linear interpolation. More...
Public Member Functions | |
DelayLine (int channels, double maximumDelay=0.001f, double sr=44100.0f) | |
void | setSize (int channels, double maximumDelay, double sr) |
void | clear () |
float | readLagrange (int ch, double t) |
float | readLinear (int ch, double t) |
float | readSample (int ch, int samplePos) |
float | readSampleLagrange (int ch, float samplePos) |
void | write (int ch, float input) |
void | writeFinished () |
Protected Attributes | |
juce::AudioSampleBuffer | buffer |
float *const * | data = nullptr |
double | sampleRate = 44100.0 |
int | writePos = 0 |
Audio Delay with linear interpolation.
DelayLine::DelayLine | ( | int | channels, |
double | maximumDelay = 0.001f , |
||
double | sr = 44100.0f |
||
) |
References setSize().
void DelayLine::setSize | ( | int | channels, |
double | maximumDelay, | ||
double | sr | ||
) |
References buffer, data, sampleRate, and writePos.
Referenced by DelayLine(), Modulation::setSampleRate(), and StereoDelay::setSampleRate().
void DelayLine::clear | ( | ) |
References buffer, and writePos.
Referenced by Modulation::reset(), StereoDelay::reset(), and Modulation::setSampleRate().
float DelayLine::readLagrange | ( | int | ch, |
double | t | ||
) |
References buffer, data, Lagrange::interpolate(), sampleRate, and writePos.
Referenced by Modulation::process(), StereoDelay::process(), and StereoDelay::processSmoothed().
float DelayLine::readLinear | ( | int | ch, |
double | t | ||
) |
References buffer, data, Assets::next, Assets::prev, sampleRate, and writePos.
float DelayLine::readSampleLagrange | ( | int | ch, |
float | samplePos | ||
) |
References buffer, data, Lagrange::interpolate(), and writePos.
void DelayLine::write | ( | int | ch, |
float | input | ||
) |
References data, and writePos.
Referenced by Modulation::process(), StereoDelay::process(), and StereoDelay::processSmoothed().
void DelayLine::writeFinished | ( | ) |
References buffer, and writePos.
Referenced by Modulation::process(), StereoDelay::process(), and StereoDelay::processSmoothed().
|
protected |
Referenced by clear(), readLagrange(), readLinear(), readSample(), readSampleLagrange(), setSize(), and writeFinished().
|
protected |
Referenced by readLagrange(), readLinear(), readSample(), readSampleLagrange(), setSize(), and write().
|
protected |
Referenced by readLagrange(), readLinear(), and setSize().
|
protected |
Referenced by clear(), readLagrange(), readLinear(), readSample(), readSampleLagrange(), setSize(), write(), and writeFinished().