Basic
PLAY
string
Plays the musical notes specified by string.
String is
a
string expression consisting of
1
or more single-character
music commands.
Single character music commands:
A
-
G
plays notes
A
through
G
of
1
musical scale. You may include
an optional number sign
(#)
or plus sign
(+)
to indicate
a
sharp note or
a
minus sign
(-)
to indicate
a
flat
note.
Ln
On
Nn
Pn
Tn
e
MF
MB
MN
ML
MS
sets the duration of the notes that follow.
N
may be
a
value
in the range
1
to 64 where:
1
indicates
a
whole note.
2 indicates
a
half note.
4 indicates
a
quarter note.
8
indicates an eighth note.
16 indicates
a
sixteenth note.
sets the current octave. There are
7
octaves, 0 through 6.
Octave
3
starts
with middle C. Default
=
Octave
4.
plays
a
note.
N
may be in the range 0 to 84.
rests.
N
may be in the range
1
to 64.
sets the number of quarter notes in
1
minute.
N
may be in
the range of
32
to 255. Default
=
120 quarter notes in
1
minute.
plays
as
a
dotted note. BASIC plays the note one-half its
length longer.
plays the music in the foreground. Default
=
MB.
plays the music in the background.
A
maximum of
32
notes
and/or rests can play in background
at
a
time. Default
=
MB.
sets “music normal”; each note plays
718
of the duration
as
set by the L option. Default
=
MN.
sets “music legato”; each note plays the full duration
as
set
by the L option. Default
=
MN.
sets “music staccato”; each note plays
314
of the duration
as set by the L option. Default
=
MN.
Tandy
1000
53