CALL MK TEMPO
This page was last modified 14:56, 10 September 2019 by Mars2000you.

Contents

Effect

Sets the speed of the metronome function of the Music Keyboard for performance, recording and playback.

It modifies the speed for the following instructions: CALL APPEND MK - CALL PLAY MK - CALL REC MK

Syntax

CALL MK TEMPO([<tempo>][,<percussion map>])

Parameters

<tempo> is a number between 25 and 360. Initial value with CALL AUDIO is 120, what corresponds to a timer cycle of 16.7mS, and the quarter note corresponds to 30 timer periods.

<percussion map> is a number between 0 and 31. It sets up a metronome function with the rhythm sound by using 5 bits. The rhythm using is specified with CALL AUDIO and PLAY. Default value with CALL AUDIO is 0, metronome function is then stopped.

Value Bass Drum Snare Drum Tom-tom Top Cymbal Hi-Hat/Cymbals
Bit4 Bit3 Bit2 Bit1 Bit0
0 0 0 0 0 0
1 0 0 0 0 1
2 0 0 0 1 0
3 0 0 0 1 1
4 0 0 1 0 0
5 0 0 1 0 1
6 0 0 1 1 0
7 0 0 1 1 1
8 0 1 0 0 0
9 0 1 0 0 1
10 0 1 0 1 0
11 0 1 0 1 1
12 0 1 1 0 0
13 0 1 1 0 1
14 0 1 1 1 0
15 0 1 1 1 1
16 1 0 0 0 0
17 1 0 0 0 1
18 1 0 0 1 0
19 1 0 0 1 1
20 1 0 1 0 0
21 1 0 1 0 1
22 1 0 1 1 0
23 1 0 1 1 1
24 1 1 0 0 0
25 1 1 0 0 1
26 1 1 0 1 0
27 1 1 0 1 1
28 1 1 1 0 0
29 1 1 1 0 1
30 1 1 1 1 0
31 1 1 1 1 1


Examples

CALL MK TEMP0 (60)
CALL MK TEMP0 (60,3)
CALL MK TEMP0 (,17)

Related to

CALL APPEND MK, CALL AUDIO, CALL INMK, CALL MK PCM, CALL MK VEL, CALL MK VOICE, CALL MK VOL, CALL PLAY MK, CALL REC MK, PLAY

Compatibility

MSX-AUDIO BASIC