Phasor repeatedly generates a high resolution ramp at a variable frequency. More...
Public Member Functions | |
Phasor () | |
Constructor. | |
unsigned long | next () |
Increments one step along the phase. | |
void | set (unsigned long value) |
Set the current value of the phasor. | |
void | setFreq (unsigned int frequency) |
Set the Phasor frequency with an unsigned int. | |
void | setFreq (float frequency) |
Set the Phasor frequency with a float. |
Phasor repeatedly generates a high resolution ramp at a variable frequency.
The output of Phasor.next() is an unsigned number between 0 and 4294967295, the maximum that can be expressed by an unsigned long.
UPDATE_RATE | the rate at which the Phasor will be updated, usually CONTROL_RATE or AUDIO_RATE. |