Mz-2000 midi implementation – Casio MZ-2000 User Manual

Page 17

Advertising
background image

16

MZ-2000 MIDI Implementation

✩ Data offset (16-bit Address Offset)

d0[9]

0jjjjjjj 000jjjjjjjkkkkkkklllllll

d0[10] 0kkkkkkk

= Data address offset (16 bits x data)

d0[11] 0lllllll

Offset from PS header address specified by the PS number in the packet data

Note that this is a 16-bit address, and not a byte address.

A session that is divided among multiple packets starts from 0 and this value is incremented by

the length of each packet.

✩ Number of data items inside a packet (16-bit data is counted as 1.)

d0[12] 0mmmmmmm 0mmmmmmm = Data number of this packet (16bit x data)

✩ Data

d1[0][0] 0nnnnnnn ppooooooonnnnnnn = Data (16 bits)

d1[0][1] 0ooooooo

d1[0][2] 000000pp

:

d1[N][0] 0nnnnnnn ppooooooonnnnnnn = Data (16 bits)

d1[N][1] 0ooooooo

d1[N][2] 000000pp

N = mmmmmm-1

Three bytes are expressed by 16 bits, and packets can be transferred with up to 64 x 16 bits per

packet.

The basic bulk dump of the MZ-2000 sound source is in 64 x 16 bit units.

ss 0sssssss checksum (value that produces 0 when added to d0[0] to ss)

Parameter Set BDR/HDR

tt

0100aaaa

aaaa = BDR/HDR

d0[0]

0ooocccc

cccc = Parameter Set Category (same as BDS/HDS)

ooo = option (same as BDS/HDS)

d0[1]

0ttttttt

0TTTTTTT0ttttttt = Type ID

d0[2]

0TTTTTTT

d0[3]

0mmmmmmm

0MMMMMMM0mmmmmmm = Mdev ID

d0[4]

0MMMMMMM

d0[5]

0sssssss

00SSSSSSSsssssss = Section Number

d0[6]

0SSSSSSS

d0[7]

0nnnnnnn

00NNNNNNNnnnnnnn = PS Number (header PS number)

d0[8]

0fffffff

✩ Number of requested parameter sets

d0[9]

0nnnnnnn

00mmmmmmmnnnnnnn

d0[10] 0mmmmmmm

Number of parameter sets requested by entire session.

4.2 MZ-2000 System Control

4.2.1 General

MZ-2000 system control messages enable system common functions by changing system param-

eters.

4.2.2 MZ-2000 System Control Message Format

The MZ-2000 System Control block is a system exclusive implementation. Only IPR and IPC are

recognized, and messages are provided to send system data, for initialization, etc.

System Information Request (except avail type) IPR/IPC

tt

0000aaaa

aaaa = IPC..."SYSEX_ACT_IPC" = 00H

IPR..."SYSEX_ACT_IPR" = 01H

d0[0]

00000000

System Parameter Access Message ID = 00H

d1[0]

0ppppppp

ppppppp = System Parameter ID

= Parmeter ID of operation

d2[0]

0xxxxxxx

Data block

(Depends on the parameter. See the following section for details.)

:

4.2.3 IDs and Operations of Each Control Parameter

A list of the control parameters is shown below. A parameter recognizes an IPR or IPC, depending

on the parameter.

Param ID / IPR/ IPC/ Function

20H - * Save/Resume MidiSetup (DevID, Global Channel)

21H - * Tone Gen / Mixer / EffectAll Initialize

22H - * DSP Effect Initialize

(*...Recognizes, -...Ignores)

MIDI Setup Save/Resume

This message saves or restores the DevID and the Global Channel.

d2[0] 0aaaaaaa aaaaaaa = 0...Save MIDI Setup

1...Resume MIDI Setup

The expected operation may not be performed during MIDI playback of song data or other data

when the Global Channel used for the Device ID and effector control is not fixed. The Resume

MIDI Setup message can be used as described below to avoid this problem.

* When the song data starts, the Save MIDI Setup message can be sent to the MZ-2000 to save

the Device ID and Global Channel and initialize these parameters to the default values shown

below.

o Device ID.........16 (10H)

o Global Channel....Channel 1

* Receipt of the Resume MIDI Setup message after the song data is finished restores the saved

Device ID and Global Channel data.

Tone Generator/Effect/Mixer Initialize

Receipt of this message initializes the sound source of the parts that can be played by MIDI, the

mixer, all effector settings, and all effector insertion settings.

This function is executed when:

d2[0] 0aaaaaaa aaaaaaa = 1111111 = 127

DSP Initialize

Receipt of this message initializes the mixer insertion setting and effector insertion setting.

This function is executed when:

d2[0] 0aaaaaaa aaaaaaa = 1111111 = 127

Advertising