User Manual

MIDI Data Format
NP-32/NP-12 MIDI Reference
5
4. PROGRAM CHANGE
Data format: [CnH] -> [ppH]
CnH = Program event (n = channel number)
ppH = Program change number
P. C . #=Program Change number
When program change reception is turned OFF, no program change
data is transmitted or received.
When you specify a program change as a number in the range of
0–127, specify a number that is one less than the program change
number listed above. For example, to specify program change num-
ber 1, you would specify a value of 0.
5. Pitch Bend Change (reception only)
[EnH] -> [ccH] -> [ddH]
ccH = LSB
ddH = MSB
6. SYSTEM REALTIME MESSAGES
[rrH]
F8H: Timing clock
FAH: Star t
FCH: Stop
FEH: Active sensing
If an error occurs during MIDI reception, the Sustain, Sostenuto,
and Soft effects for all channels are turned off and an All Note Off
occurs.
7. SYSTEM EXCLUSIVE MESSAGES
(Universal System Exclusive)
(1) Universal Realtime Message
Data format: [F0H] -> [7FH] -> [XnH] -> [04H] -> [01H] -> [llH] ->
[mmH] -> [F7H]
MIDI Master Volume (reception only)
Simultaneously changes the volume of all channels.
When a MIDI master volume message is received, the volume only
has affect on the MIDI receive channel, not the panel master vol-
ume.
F0H = Exclusive status
7FH = Universal Realtime
7FH = ID of target device
04H = Sub-ID #1=Device Control Message
01H = Sub-ID #2=Master Volume
llH = Volume LSB
mmH = Volume MSB
F7H = End of Exclusive
or
F0H = Exclusive status
7FH = Universal Realtime
XnH = When received, n=0–F.
X = irrelevant
04H = Sub-ID #1=Device Control Message
01H = Sub-ID #2=Master Volume
llH = Volume LSB
mmH = Volume MSB
F7H = End of Exclusive
(2) Universal Non-Realtime Message (GM On)
General MIDI Mode On
Data format: [F0H] -> [7EH] -> [XnH] -> [09H] -> [01H] -> [F7H]
F0H = Exclusive status
7EH = Universal Non-Realtime
7FH = ID of target device
09H = Sub-ID #1=General MIDI Message
01H = Sub-ID #2=General MIDI On
F7H = End of Exclusive
or
F0H = Exclusive status
7EH = Universal Non-Realtime
XnH = When received, n=0–F.
X = irrelevant
09H = Sub-ID #1=General MIDI Message
01H = Sub-ID #2=General MIDI On
F7H = End of Exclusive
When the General MIDI mode ON message is received, the MIDI
system will be reset to its default settings.
This message requires approximately 50ms to execute, so suffi-
cient time should be allowed before the next message is sent.
8. SYSTEM EXCLUSIVE MESSAGES (XG Standard)
(1) XG Native Parameter Change
Data format: [F0H] -> [43H] -> [1nH] -> [4CH] -> [hhH] -> [mmH] ->
[llH] -> [ddH] -> [F7H]
F0H = Exclusive status
43H = YAMAHA ID
1nH = When received, n=0–F.
When transmitted, n=0.
4CH = Model ID of XG
hhH = Address High
mmH = Address Mid
llH = Address Low
ddH = Data
|
F7H = End of Exclusive
Data size must match parameter size (2 or 4 bytes).
When the XG System On message is received, the MIDI system
will be reset to its default settings.
The message requires approximately 50ms to execute, so suffi-
cient time should be allowed before the next message is sent.
(2) XG Native Bulk Data (reception only)
Data format: [F0H] -> [43H] -> [0nH] -> [4CH] -> [aaH] -> [bbH] ->
[hhH] -> [mmH] -> [llH] ->[ddH] ->...-> [ccH] -> [F7H]
F0H = Exclusive status
43H = YAMAHA ID
0nH = When received, n=0–F.
When transmitted, n=0.
4CH = Model ID of XG
aaH = ByteCount
bbH = ByteCount
hhH = Address High
mmH = Address Mid
llH = Address Low
ddH = Data
| |
| |
ccH = Check sum
F7H = End of Exclusive
Receipt of the XG SYSTEM ON message causes reinitialization of
relevant parameters and Control Change values. Allow sufficient
time for processing to execute (about 50 msec) before sending the
NP-32 NP-12 another message.
XG Native Parameter Change message may contain two or four
bytes of parameter data (depending on the parameter size).
For information about the Address and Byte Count values, refer to
Table 1 below. Note that the table’s Total Size value gives the size of
a bulk block. Only the top address of the block (00H, 00H, 00H) is
valid as a bulk data address.
NP-32 NP-12 MSB LSB P.C.#
Piano 1 0 122 1
Piano 2 0 112 1
E. Piano 1 0 122 6
E. Piano 2 0 122 5
Organ 1 0 123 20
Organ 2 0 122 20
Strings 0 122 49
Vibraphone 0 122 12
Harpsichord 1 0 122 7
Harpsichord 2 0 123 7
Data Transmission Reception
F8H Transmitted every
96 clocks
Received as 96-clock tempo timing
when MIDI clock is set to External.
FAH Song start Song start
Not received when the MIDI clock is set
to Internal.
FCH Song stop Song stop
Not received when the MIDI clock is set
to Internal.
FEH Transmitted every
200 milliseconds
If a signal is not received via MIDI for
more than 400 milliseconds, the same
processing will take place for All Sound
Off, All Notes Off and Reset All Control-
lers as when those signals are
received.