TONE

Syntax

TONE frequency duration

Explanation

TONE plays a musical tone whose pitch in Hertz is the first input. Each unit of the second input, duration, is 1/18.2 of a second.

The following table correlates tones with their frequency in Hertz. 440.00 A is the tuning note; 261.63 C is the same pitch as middle C on a piano. Higher or lower notes can be approximated by either doubling or halving the frequency of the corresponding note in the nearest octave. Example

? TONE 440 18.2

produces the note A for one second.

TO TRILL


 * REPEAT 10 [TONE 440 1 TONE 493.88 1]

END

produces a short trill.