Tandy 1000 Basic Reference Manual page 266

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter
10 I
BASIC Keywords
PLAY
Function
PLAY (num ber)
Returns the number of notes currently in the background music
queue.
Number is a dummy argument when SOUND is OFF. If you exe-
cute a SOUND
ON,
then number may be one of the following:
0
1
2
returns the number of notes left to play on voice
channel 0.
returns the number of notes left to play on voice
channel 1.
returns the number of notes left t o play on voice
channel 2.
If you specify a number other than 0-2, BASIC assumes 0.
The PLAY function returns a 0 when the program is running in
music foreground mode.
See also SOUND
Sample Program
1 0 P L A Y
"ME ABCDEFG"
2 0
IF
P L A Y
( 0 )
=
4
GOTO 4 0
30
GOTO 20
4 0 P L A Y
"GFEDCBA"
Line 10 sends notes to the music buffer. When the number of
notes is less than 4. Line 40 sends more notes to the buffer.
264

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents