|This page is intended as a reference for core developers only, and the content is only changed after a consensus has been reached through discussion of any such changes. Please use the Discussion page to talk about any changes or issues you have with the current implementation.|
|Version introduced||1.0 (0100)|
void setTonePolyphony(uint8_t polyphony)
The setTonePolyphony method sets the max number of tones to play.
Black Box Input
The max number of tones is provided.
Black Box Output
No output. The max number of tones is set to the provided number.
None. Single signature only.
The max number of tones is limited by the number of timers on the board.
If a previous tone command is playing, and a new pin is specified, and tonePolyphony has been set to > 1, and there are available timers, a simultaneous tone will be played on the new pin.
Avoid using Timer0 because it is used for millis etc.