17.07.2013 Views

GWBASIC User's Manual

GWBASIC User's Manual

GWBASIC User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GW-BASIC <strong>User's</strong> Guide<br />

PLAY(n) Function<br />

Purpose:<br />

To return the number of notes currently in the background music queue.<br />

Syntax:<br />

PLAY(n)<br />

Comments:<br />

n is a dummy argument, and may be any value.<br />

PLAY(n) returns 0 when in music foreground mode.<br />

The maximum returned value of x is 32.<br />

Examples:<br />

10 ' when 4 notes are left in<br />

20 ' queue play another tune<br />

30 PLAY "MBABCDABCDABCD"<br />

40 IF PLAY (0) =4 then 200<br />

.<br />

.<br />

.<br />

200 PLAY "MBCDEFCDEF"<br />

file:///C|/Documents%20and%20Settings/Lorenzo/Desktop/GW%20Basic/PLAYN.html28/03/2004 21.29.42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!