CALL PITCH
This page was last modified 00:28, 17 April 2017 by Mars2000you.

This instruction is available in MSX-AUDIO Basic and MSX-MUSIC Basic.

Contents

Effect

Specifies the pitch of the FM melody sounds generated by the FM generator(s). It can be set independently of the transpose parameter.

This instruction is without effect on FM rhythm sounds, PCM and PSG.

Syntax

CALL PITCH(<pitch generator 1>[,<pitch generator 2])

Parameters

<pitch generator 1> and <pitch generator 2> specify a value between 410 and 459 and the unit is Hz.

By default, the pitch has a value of 440 Hz and corresponds to the note A2.

When using MSX-MUSIC, <pitch generator 2> is ignored even if there are two MSX-MUSIC chips (internal and external for example), because all the MSX-MUSIC chips use only the Z80/R800 ports 7C-7D without possibility of alternative ports.

When using MSX-AUDIO, both parameters are taken in account when two MSX-AUDIO chips are used simultaneously by the MSX computer (using different Z80/R800 ports: C0-C1 for the first FM generator, C2-C3 for the second FM generator). If only the first parameter is specified in such situation, it will be applied to both FM generators.

Example

10 CALL MUSIC
20 CALL PITCH(430)

Related to

CALL TEMPER, CALL TRANSPOSE

Compatibility

MSX-AUDIO BASIC, MSX-MUSIC BASIC