Manages a table that is used for wavetable synthesis. Supports table lookup with linear interpolation.
Show All |
Public Member Functions
-
WaveTable (size_t mSampleRate, size_t tableSize)
-
voidresize (size_t tableSize)
-
voidfillSine ()
-
size_tgetSampleRate () const
-
size_tgetTableSize () const
-
floatlookup (float phase) const
-
floatlookup (float *outputArray, size_t outputLength, float currentPhase, float freq) const
-
floatlookup (float *outputArray, size_t outputLength, float currentPhase, const float *freqArray) const
-
voidcopyTo (float *array) const
-
voidcopyFrom (const float *array)