TONE left [, right [, dur]]
Generates a continuous sine wave on the sound output. ‘left’ and ‘right’ are the frequencies to use for the left and right channels. The tone plays in the background (the program will continue running after this command) and ‘dur’ specifies the number of milliseconds that the tone will sound for. If the duration is not specified the tone will continue until explicitly stopped or the program terminates.
The command TONE STOP will immediately halt the tone output.
The frequency can be from 1Hz to 20KHz and is very accurate (it is based on the PIC32 crystal oscillator). The frequency can be changed at any time by issuing a new TONE command.
In the monochrome Maximite and compatibles only the left frequency will play but a dummy or empty value is still required for the right channel.
TONE STOP
The command TONE STOP will immediately halt the tone output.
See also:
PLAYMOD
PLAYMOD STOP
SOUND
TONE STOP
Leave a Reply