CALL MK STAT
This page was last modified 15:05, 17 May 2020 by Mars2000you.

Contents

Effect

Returns the status of Music Keyboard for recording.

Syntax

CALL MK STAT(<Variable>)

Parameter

<Variable> is a numeric variable that will contain the current status of Music Keyboard for recording. It is coded on 8 bits as follows:

Bits Meaning Values Related instruction
7 FM sound source 0 = NO - 1 = YES CALL MK VOICE
6 and 5 not used always 00
4 ADPCM sound source 0 = NO - 1 = YES CALL MK PCM
3 Music Keyboard Playback
in background
0 = NO - 1 = YES CALL BGM
2 Music Keyboard Recording 0 = NO - 1 = YES CALL REC MK
1 and 0 Recording mode 00 (0) - 01 (1) - 10 (2) - 11 (3) CALL RECMOD


When the source is ADPCM, it will give the values 16 to 31.

When the source is FM, it will give the values 128 to 143.

Example

CALL MK STAT(A):PRINT A

Related to

CALL BGM, CALL MK PCM, CALL MK VOICE, CALL REC MK, CALL RECMOD

Compatibility

MSX-AUDIO BASIC