Function tone
#include <macaw.h>void tone(int voice, double hz, int ms);
Plays a plain beep at any pitch on one of the four sound-effect voices, as a square wave at half volume.
Parameters
voiceint- Which voice plays it, from 1 to 4. A new sound on a voice stops the one before. Other numbers play nothing.
hzdouble- The pitch in hertz: 440 is the A above middle C.
msint- How long it lasts, in milliseconds.