CALL KEY ON
This page was last modified 00:16, 2 June 2023 by Mars2000you.

Contents

Effect

Sets a key of the MSX keyboard as instrument.

Use of this instruction and CALL KEY OFF allows to simulate a Music Keyboard, but it can't be used for Music Keyboard recording.

Syntax

CALL KEY ON(<KeyCodeNumber>,<Velocity>)

The last parameter is optional. Parameters can not end with a comma alone.

Parameters

<KeyCodeNumber> is a number between 0 and 127.

<Velocity> is optional. It's a number between 0 and 15. Default value is 8.

Example

CALL KEY ON(60, 3)

Number 60 corresponds to middle C.

Related to

CALL INMK, CALL KEY OFF

Compatibility

MSX-AUDIO BASIC