Gin
Public Member Functions | List of all members
BandLimitedLookupTables Class Reference

Generate and hold bandlimited lookup tabkes for all the common waveforms. More...

Public Member Functions

 BandLimitedLookupTables (double sampleRate=44100, int notesPerTable=3, int tableSize=2048)
 
void setSampleRate (double sampleRate)
 
float processSine (float phase)
 
float processTriangle (float note, float phase)
 
float processSawUp (float note, float phase)
 
float processSawDown (float note, float phase)
 
float processSquare (float note, float phase)
 
float processPulse (float note, float phase, float pw)
 
float process (Wave wave, float note, float phase, float pw)
 
double getSampleRate ()
 

Detailed Description

Generate and hold bandlimited lookup tabkes for all the common waveforms.

Constructor & Destructor Documentation

◆ BandLimitedLookupTables()

BandLimitedLookupTables::BandLimitedLookupTables ( double  sampleRate = 44100,
int  notesPerTable = 3,
int  tableSize = 2048 
)

Member Function Documentation

◆ setSampleRate()

void BandLimitedLookupTables::setSampleRate ( double  sampleRate)

◆ processSine()

float BandLimitedLookupTables::processSine ( float  phase)

References BandLimitedLookupTable::getLinear().

Referenced by process().

◆ processTriangle()

float BandLimitedLookupTables::processTriangle ( float  note,
float  phase 
)

◆ processSawUp()

float BandLimitedLookupTables::processSawUp ( float  note,
float  phase 
)

◆ processSawDown()

float BandLimitedLookupTables::processSawDown ( float  note,
float  phase 
)

◆ processSquare()

float BandLimitedLookupTables::processSquare ( float  note,
float  phase 
)

◆ processPulse()

float BandLimitedLookupTables::processPulse ( float  note,
float  phase,
float  pw 
)

◆ process()

float BandLimitedLookupTables::process ( Wave  wave,
float  note,
float  phase,
float  pw 
)

◆ getSampleRate()

double BandLimitedLookupTables::getSampleRate ( )

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