Contents |
Effect
Plays a music from the Music Keyboard, that has been
- saved in an array with CALL REC MK
- or loaded with BLOAD in a specific area of the computer RAM
Tip: Define first the playback mode with CALL BGM and optionally the recording mode with CALL RECMOD
Note: the foreground music can be stopped by pressing CTRL+STOP while you need to use CALL STOPM for the background music.
Syntaxes
- CALL PLAY MK
- CALL PLAY MK (<ArrayName>)
- CALL PLAY MK (<StartAddress>,<EndAddress>)
Parameters
Without parameter, the last recorded music is played.
<ArrayName> is an alphanumeric variable or a string, previously defined with the DIM instruction. When you play from an array, the background mode can't be used.
<StartAddress> and <EndAddress> are used to specify the area of the computer RAM. It is recommended to first protect this area with a CLEAR instruction, especially if you use the background mode.
Examples
10 DIM A(500) 20 CALL REC MK(A) 30 CALL PLAY MK(A)
10 CLEAR 300,&HA000 20 BLOAD"KMTEST" 30 CALL PLAY MK(&HA000,&HA2FF)
Related to
CALL APPEND MK, CALL BGM, CALL CONT MK, CALL MK STAT, CALL REC MK, CALL RECMOD, CALL STOPM, BLOAD, CLEAR, DIM