PlayTune
Purpose
Play a tune on the CrcDuino buzzer.
When to use
When you want to play a sound (for debugging).
Where to use
Inside the loop function.
Calling this function cancels the previous sound. Make sure to not call it repeatedly.
Returns
N/A
Main prototype and parameters
void CrcLib::PlayTune(const Note notes[], bool repeat)
The following parameters must be passed to the function for it to work properly:
A sequence of notes to play
Whether to loop the sound
Overloads
void CrcLib::PlayTune(Tune* tune)
A more advanced version of the function you probably don’t need. If you want to use it, read CrcBuzz.h for more info.