CALL INMK
This page was last modified 14:58, 17 May 2020 by Mars2000you.

Contents

Effect

Returns changes for Music Keyboard, detected by the interrupt and stored in the key buffer (32 bytes) as variables.

It will return 0, 0, 0 if the key buffer is empty.

Syntaxes

  • CALL INMK(<Variable1>, <Variable2>,<Variable3>)
  • CALL INMK

You can specify 1, 2 or 3 variables. Parameters can not end with a comma alone.

Parameters

<Variable> is a numeric variable that will contain the value read from the key buffers.

  • variable 1 will give the key code number between 0 and 127. Number 60 corresponds to middle C.
  • variable 2 will give the key code status: 0 = OFF - 1 = ON
  • variable 3 will give the ADPCM frequency that corresponds to the key code number

Without parameter, the key buffer will be cleared. It happens also when a key buffer overflows, after display of the "Device I/O error" message.

Example

CALL INMK(A,B,C): PRINT A,B,C

Related to

CALL KEY OFF, CALL KEY ON

Compatibility

MSX-AUDIO BASIC