Gin
Public Member Functions | Protected Attributes | List of all members
DelayLine Class Reference

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
 

Detailed Description

Audio Delay with linear interpolation.

Constructor & Destructor Documentation

◆ DelayLine()

DelayLine::DelayLine ( int  channels,
double  maximumDelay = 0.001f,
double  sr = 44100.0f 
)

References setSize().

Member Function Documentation

◆ setSize()

void DelayLine::setSize ( int  channels,
double  maximumDelay,
double  sr 
)

◆ clear()

void DelayLine::clear ( )

◆ readLagrange()

float DelayLine::readLagrange ( int  ch,
double  t 
)

◆ readLinear()

float DelayLine::readLinear ( int  ch,
double  t 
)

◆ readSample()

float DelayLine::readSample ( int  ch,
int  samplePos 
)

References buffer, data, and writePos.

◆ readSampleLagrange()

float DelayLine::readSampleLagrange ( int  ch,
float  samplePos 
)

◆ write()

void DelayLine::write ( int  ch,
float  input 
)

◆ writeFinished()

void DelayLine::writeFinished ( )

Member Data Documentation

◆ buffer

juce::AudioSampleBuffer DelayLine::buffer
protected

◆ data

float* const* DelayLine::data = nullptr
protected

◆ sampleRate

double DelayLine::sampleRate = 44100.0
protected

Referenced by readLagrange(), readLinear(), and setSize().

◆ writePos

int DelayLine::writePos = 0
protected

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