Chapter
10
I
BASIC Keywords
ML
MS
X
variable;
sets "music legato"; each note plays the full du-
ration as set by the
L
option.
sets "music staccato"; each note plays
3/4
of
the
duration as set by the
L
option.
executes
a
substring. The
X
command lets you
execute a second substring from
a
string, much
like GOSUB. You can have one string execute
another, which executes a third, and
so
on.
Vari-
able
is a string variable in your program that
contains the substring you want to execute.
Vari-
able
may contain an
X
command to execute an-
other substring. The semicolon after the variable
name is required.
sets the volume.
n
must be in the range 0
to
15.
You must execute a SOUND
ON
statement to use
this option. If you omit volume, BASIC uses
8.
With the
0,
N,
P,
and T commands,
n
may also be a numeric
variable in your BASIC program.
Do
not space between the com-
mand and the
n
or
between the command and the
variable.
You
must include a semicolon after the variable name.
The lowest note the multi-voice sound chip can produce is Note
A
of
Octave 0, which is 110Hz. If you try to play a lower note,
BASIC does not return an error. Instead, BASIC plays Note
A
of
Octave 0.
Vn
Ex
ample
1 0 PLAY "C4F. C8F8. C16F8. G16A2F2"
20 INPUT "CAN YOU NAME THAT TUNE
";A$
40 IF
A$
=
"THE EYES OF TEXAS" THEN GOTO 50 ELSE
50 PRINT "THAT'S RIGHT!"
PRINT "TRY AGAIN": GOTO 10
263