FANDOM


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.

Note Frequency
C 130.81
C# 138.59
D 146.83
D# 155.56
E 164.81
F 174.61
F# 185.00
G 196.00
G# 207.65
A 220.00
A# 223.08
B 246.94
C 261.63
C# 277.18
D 293.66
D# 311.13
E 329.63
F 349.23
F# 370.00
G 392.00
G# 415.30
A 440.00
A# 466.18
B 493.88
C 523.25
C# 554.37
D 587.33
D# 622.25
E 659.26
F 698.46
F# 739.99
G 783.99
G# 830.61
A 880.00
A# 932.33
B 987.77
C 1046.50

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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.