| .PLAY Statement QuickSCREENi |
|
  QuickSCREEN       Details       Example       Contents       Index |
| ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ |
| PLAY - a device I/O statement that plays music |
|
| Syntax |
|   PLAY commandstring |
|     ž commandstring is a stringexpression that contains music commands: |
| ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄSet Octaves and Play TonesÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ |
| On  Sets current octave (n = 0-6)    ³  < or >  Up or down one octave |
| Nn  Plays note n (n = 0-84, 0 is a   ³  A-G  Plays A, B, ..., G in current |
|      rest)                            ³      octave (+ = sharp, - = flat) |
| ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄSet Tone Duration and TempoÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ |
| Ln  Sets length of a note (L1 is     ³  MS  Each note plays 3/4 of length |
|      whole note, L4 is quarter note,  ³  MN  Each note plays 7/8 of length |
|      etc.)  n = 1-64                  ³  ML  Each note plays full length |
| Tn  Sets number of quarter notes per ³  Pn  Pause for the duration of |
|      minute (n = 32-255, 120 default  ³      n quarternotes (n = 1-64) |
| ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄSet OperationÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ |
| MF  Plays music in foreground        ³  MB  Plays music in background |
| ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄExecute SubstringsÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ |
|        X + VARPTR$(string-expression)     Executes another command string |
|
See Also  SOUND   BEEP   ON PLAY(n) |
| Other Uses of the PLAY Keyword |
  PLAY ON, PLAY OFF, and PLAY STOP - to enable, disable, or suspend play |
|                                        event trapping |
  PLAY function - to return the number of notes in the background music |
|                     queue |