Kurzweil K2000 - MUSICIANS GUIDE Musician's Manual page 452

Table of Contents

Advertisement

System Exclusive Protocol
K2vx System Exclusive Implementation
binary encoding for type(2) field:
decimal encoding for type(2) field:
Object name Þelds are sent as a string of ASCII values in a ÔnameÕ Þeld, with one MIDI byte of
zero as a string terminator. For example, the name ÒGlass KazooÓ would be sent as letters:
hex encoding for 'name' field:
Data sizes and offsets are sent in the ÔsizeÕ and ÔoffsÕ Þelds.These values refer to quantities of 8-
bit bytes in the K2vxÕs memory, which is packed in the ÔdataÕ Þeld.
Binary data in the ÔdataÕ Þeld is sent by in one of two formats, according to the value of the
ÔformÕ Þeld. If the ÔformÕ Þeld equals zero, the data is transmitted as 4 bits or one ÒnibbleÓ in
every MIDI byte. If the ÔformÕ Þeld equals one, then the data is sent as a compressed bit-stream,
with 7 bits per midi byte. The bit-stream format is more efÞcient for data-transmission, while
the nibble format is easier to read (and write software for).
For example, to send the following four K2vx data bytes,
hex:
decimal:
binary:
eight MIDI bytes are sent in ÒnibbleÓ format:
hex:
decimal:
binary:
0000100
Þve MIDI bytes are sent in bit-stream format:
hex:
decimal:
binary:
The bit-stream format can be thought of as taking the binary bits of the K2vx data and, starting
from the left, slicing off groups of 7 bits. Note that the trailing bits are set to zero.
After the ÔdataÕ Þeld, there is another Þeld, ÔxsumÕ. This is a checksum Þeld which is calculated
as the least signiÞcant 7-bits of the sum of all of the MIDI bytes that make up the ÔdataÕ Þeld.
Messages
This section deÞnes the K2vx System Exclusive message formats. Each message has a message
type (that goes in the Ômsg-typeÕ Þeld; see Common Format, above), followed by the Þeld
deÞnitions of the message.
30-2
decimal:
binary:
G
l
a
s
47 6C
61
73
4F
D8
79
216
01001111 11011000
04
0F
4
15
0001111
0001101
27
76
39
118
0100111
1110110
132
10000100
0000001 0000100
1 4
s
_
K
a
z
73
20
4B
61
7A
01
29
1
41
00000001 00101001
0D
08
13
8
0001000
0000000
0
12
0
18
0000000
0010010
o
o
<null>
6F
6F 00
00
01
0
1
0000001
0000010
48
72
1001000
02
09
2
9
0001001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

K2vxK2vxrK2500rs

Table of Contents