class: mOscil
an improved version of MOZZI’s Oscil class
Description
A copy of MOZZI’s Oscil class with a few improvements as follows:
8-bit or 16-bit wavetables can be used; just specify the bitrate of your table in the template when creating your object
linear interpolation can be used, also specified in template
Aside from these two changes, everything functions identical to MOZZI’s Oscil so full documentation can be found on their website
Template Parameters
template <uint16_t NUM_TABLE_CELLS, uint32_t UPDATE_RATE, class T = int8_t, uint8_t INTERP = mINTERP_NONE>NUM_TABLE_CELLS: length of wavetable being used
UPDATE_RATE: how often the .next() function will be called
T: bitrate of the wavetable being used (likely int8_t or int16_t)
INTERP: interpolation type used in playback. Either mINTERP_NONE or mINTERP_LINEAR
Class Methods
Example