PLAYS one or more notes from the speaker for multiples of 1/8th second. The note is selected by n1,n2 etc and the duration of the note is specified by m1,m2,etc. To PLAY the note A below middle C, for one second, you would type:
PLAY 1,8
where A = 1 and 1 second = 8 * 1/8.
The notes start at A below middle C and continue for two octaves. The numbers that denote the various notes are:
Number Note Frequency 0 REST 1 A 220 2 A# 233 3 B 247 4 C 262 5 C# 277 6 D 294 7 D# 311 8 E 330 9 F 349 10 F# 370 11 G 392 12 G# 415 13 A 440 14 A# 466 15 B 494 16 C 523 17 C# 554 18 D 587 19 D# 622 20 E 659 21 F 698 22 F# 740 23 G 784 24 G# 831
Program Example
00100 REM Computer Music
00110 A = INT(RND*3)+1
00120 PLAY INT(RND*24),A
00130 GOTO 110
00140 END