background image

14

Example of an Exclusive message and calculating a

Checksum

Roland Exclusive messages are transmitted with a checksum at the end (before F7) to make
sure that the message was correctly received. The value of the checksum is determined by
the address and data (or size) of the transmitted exclusive message.

uHow to calculate the checksum (hexadecimal numbers are indicated by 'H')
The checksum is a value derived by adding the address, size and checksum itself and
inverting the lower 7 bits.
Here's an example of how the checksum is calculated. We will assume that in the exclusive
message we are transmitting, the address is aa bb ccH and the data or size is dd ee ffH.

aa + bb + cc + dd + ee + ff = sum
sum / 128 = quotient ... remainder
128 - remainder = checksum

<Example> Setting REVERB MACRO to ROOM 3
According to the "Parameter Address Map," the REVERB MACRO Address is 40 01 30H,
and ROOM 3 is a value of 02H. Thus,

F0

41

10

42

12

40 01 30

02

??

F7

 (1)

 (2)

 (3)

 (4)

 (5)

Address

data

Checksum

 (6)

(1) Exclusive Status, (2) ID (Roland), (3) Device ID (17),
(4) Model ID (GS), (5) Command ID (DT1), (6) End of Exclusive

Next we calculate the checksum.

40H + 01H + 30H + 02H = 64 + 1 + 48 + 2 = 115 (sum)
115 (sum) / 128 = 0 (quotient) ... 115 (remainder)
checksum = 128 - 115 (remainder) = 13 = 0DH

This means that F0 41 10 42 12 40 01 30 02 0D F7 is the message we transmit.

About tuning

In MIDI, individual Parts are tuned by sending RPN #1 (Master Fine Tuning) to the
appropriate MIDI channel.
In MIDI, an entire device is tuned by either sending RPN #1 to all MIDI channels being
used, or by sending a System Exclusive MASTER TUNE (address 40 00 00H).
RPN #1 allows tuning to be specified in steps of approximately 0.012 cents (to be precise,
100/8192 cent), and System Exclusive MASTER TUNE allows tuning in steps of 0.1 cent.
One cent is 1/100th of a semitone.
The values of RPN #1 (Master Fine Tuning) and System Exclusive MASTER TUNE are
added together to determine the actual pitch sounded by each Part.

Frequently used tuning values are given in the following table for your reference. Values
are in hexadecimal (decimal in parentheses).

+————————+————————+——————————————+———————————————————+
|Hz in A4|  cent  |    RPN #1    | Sys.Ex. 40 00 00  |
+————————+————————+——————————————+———————————————————+
|  445.0 | +19.56 | 4C 43 (+1603)| 00 04 0C 04 (+196)|
|  444.0 | +15.67 | 4A 03 (+1283)| 00 04 09 0D (+157)|
|  443.0 | +11.76 | 47 44 (+ 964)| 00 04 07 06 (+118)|
|  442.0 | + 7.85 | 45 03 (+ 643)| 00 04 04 0F (+ 79)|
|  441.0 | + 3.93 | 42 42 (+ 322)| 00 04 02 07 (+ 39)|
|  440.0 |   0.00 | 40 00 (    0)| 00 04 00 00 (   0)|
|  439.0 | - 3.94 | 3D 3D (- 323)| 00 03 0D 09 (- 39)|
|  438.0 | - 7.89 | 3A 7A (- 646)| 00 03 0B 01 (- 79)|
+————————+————————+——————————————+———————————————————+

<Example> Set the tuning of MIDI channel 3 to A4 = 442.0 Hz
Send RPN#1 to MIDI channel 3. From the above table, the value is 45 03H.

 B2

64 00

MIDI ch.3, lower byte of RPN parameter number: 00H

(B2)

65 01

(MIDI ch.3) upper byte of RPN parameter number: 01H

(B2)

06 45

(MIDI ch.3) upper byte of parameter value: 45H

(B2)

26 03

(MIDI ch.3) lower byte of parameter value: 03H

(B2)

64 7F

(MIDI ch.3) lower byte of RPN parameter number: 7FH

(B2)

65 7F

(MIDI ch.3) upper byte of RPN parameter number: 7FH

The Scale Tune Feature (address: 40 1x 40)

The scale Tune feature allows you to finely adjust the individual pitch of the notes from C
through B. Though the settings are made while working with one octave, the fine
adjustments will affect all octaves. By making the appropriate Scale Tune settings, you can
obtain a complete variety of tuning methods other than equal temperament. As examples,
three possible types of scale setting are explained below.

Equal Temperament

This method of tuning divides the octave into 12 equal parts. It is currently the most widely
used form of tuning, 
especially in occidental music. On HP-337, the default settings for the Scale Tune feature
produce equal temperament.

Just Temperament (Keytone C)

The three main chords resound much more beautifully than with equal temperament, but
this benefit can only be obtained in one key. If transposed, the chords tend to become
ambiguous. The example given involves settings for a key in which C is the keynote.

Arabian Scale

By altering the setting for Scale Tune, you can obtain a variety of other tunings suited for
ethnic music. For example, the settings introduced below will set the unit to use the Arabian
Scale.

Example Settings
Note name

Equal Temperament

Just Temperament (Keytone C)

Arabian Scale

C

0

0

-6

C#

0

-8

+45

D

0

+4

-2

D#

0

+16

-12

E

0

-14

-51

F

0

-2

-8

F#

0

-10

+43

G

0

+2

-4

G#

0

+14

+47

A

0

-16

0

A#

0

+14

-10

B

0

-12

-49

The values in the table are given in cents. Refer to the explanation of Scale Tuning (p. 11) to
convert these values to hexadecimal, and transmit them as exclusive data.
For example, to set the tune (C-B) of the Part1 Arabian Scale, send the data as follows:
F0 41 10 42 12 40 11 40 3A 6D 3E 34 0D 38 6B 3C 6F 40 36 0F 50 F7

Copyright(c) 2000 ROLAND CORPORATION
All right reserved. No part of this publication may reproduced in any form without the
written permission of ROLAND CORPORATION.

Содержание HP 337

Страница 1: ...t received when Rx MODULATION OFF Initial value is ON The resulting effect is determined by System Exclusive messages With the initial settings this is Pitch Modulation Depth Portamento Time Controlle...

Страница 2: ...te BnH 4DH vvH n MIDI channel number 0H FH ch 1 ch 16 vv Vibrato Depth Value relative change 00H 7FH 64 0 63 Initial Value 40H no change Some Tones will not exhibit any change Vibrato Delay Controller...

Страница 3: ...changes or in the range of change Parameters marked absolute change will be set to the absolute value of the parameter regardless of the preset value Data entry LSB llH is ignored RPN MSB LSB Control...

Страница 4: ...BnH 7FH 00H n MIDI channel number 0H FH ch 1 ch 16 The same processing will be carried out as when All Sounds Off and All Notes Off is received and the corresponding channel will be set to Mode 3 Syst...

Страница 5: ...at least 50 ms between this message and the next Universal Realtime System Exclusive Messages Master volume Status Data byte Status F0H 7FH 7FH 04H 01H llH mmH F7H Byte Explanation F0H Exclusive statu...

Страница 6: ...e message 7FH Device ID Broadcast 09H Sub ID 1 Controller Destination Setting 03H Sub ID 2 Control Change 0nH MIDI Channel 00 0F ccH Controller number 01 1F 40 5F ppH Controlled parameter rrH Controll...

Страница 7: ...ets of 128 bytes or less If Data Set 1 is transmitted successively there must be an interval of at least 40 ms between packets Regarding the checksum please refer to section 4 p 13 2 Transmit data Arr...

Страница 8: ...F0H 7EH 10H 06H 02H 41H 42H 00H 00H 09H 00H 01H 00H 00H F7H Byte Explanation F0H Exclusive status 7EH ID number universal non realtime message 10H Device ID use the same as the device ID of Roland 06H...

Страница 9: ...03 Refer to section 4 Supplementary material About tuning p 14 40 00 04 00 00 01 00 7F MASTER VOLUME 0 127 7F 127 F0 7F 7F 04 01 00 vv F7 40 00 05 00 00 01 28 58 MASTER KEY SHIFT 24 24 semitones 40 0...

Страница 10: ...01 Rx RPN OFF ON 01 ON 40 1x 0A 00 00 01 00 01 Rx NRPN OFF ON 00 01 OFF ON When GM1 System On and GM2 System On are received Rx NRPN will be set OFF When GS Reset is received it will be set ON 40 1x...

Страница 11: ...40 1x 46 00 7F SCALE TUNING F 64 63 cent 40 0 cent 40 1x 47 00 7F SCALE TUNING G 64 63 cent 40 0 cent 40 1x 48 00 7F SCALE TUNING G 64 63 cent 40 0 cent 40 1x 49 00 7F SCALE TUNING A 64 63 cent 40 0 c...

Страница 12: ...CC1 LFO1 TVF DEPTH 0 2400 cent 00 0 cent 40 2x 46 00 00 01 00 7F CC1 LFO1 TVA DEPTH 0 100 0 00 0 40 2x 47 00 00 01 00 7F CC1 LFO2 RATE CONTROL 10 0 10 0 Hz 40 0 Hz 40 2x 48 00 00 01 00 7F CC1 LFO2 PI...

Страница 13: ...atus and n is the MIDI channel number Since EH 14 and 49H 73 this is a Program Change message with MIDI CH 15 program number 74 Flute in GS Example 3 EA 00 28 EnH is the Pitch Bend Change status and n...

Страница 14: ...7 39 440 0 0 00 40 00 0 00 04 00 00 0 439 0 3 94 3D 3D 323 00 03 0D 09 39 438 0 7 89 3A 7A 646 00 03 0B 01 79 Example Set the tuning of MIDI channel 3 to A4 442 0 Hz Send RPN 1 to MIDI channel 3 From...

Страница 15: ...1 4 8 8 38 00h 48h 09h Glocken 1 00h 00h 0Ah GS Music Box 1 8 39 00h 40h 0Ah Music Box 1 4 5 00h 48h 0Ah Music Box 1 00h 00h 0Bh GS Vibe 1 8 40 00h 40h 0Bh Vibraphone 1 4 1 00h 48h 0Bh Vibraphone 1 0...

Страница 16: ...h 40h 21h Fingered Bs 1 00h 48h 21h Fingered Bs 1 00h 00h 22h GS Picked Bs 1 8 86 00h 40h 22h Picked Bs 1 00h 41h 22h Mute PickBs 1 00h 48h 22h Picked Bs 1 00h 00h 23h Fretless Bs 1 8 87 00h 48h 23h F...

Страница 17: ...00h 00h 48h Piccolo 1 8 139 00h 48h 48h Piccolo 1 00h 00h 49h GS Flute 1 8 140 00h 40h 49h Flute 1 8 1 00h 48h 49h Flute 1 00h 00h 4Ah Recorder 1 8 141 00h 48h 4Ah Recorder 1 00h 00h 4Bh Pan Flute 1 8...

Страница 18: ...00h 00h 6Ch Kalimba 1 4 11 8 184 00h 48h 6Ch Kalimba 1 00h 00h 6Dh Bagpipe 1 8 185 00h 48h 6Dh Bagpipe 1 00h 00h 6Eh Fiddle 1 8 186 00h 48h 6Eh Fiddle 1 00h 00h 6Fh Shanai 1 8 187 00h 48h 6Fh Shanai 1...

Страница 19: ...249 02h 00h 7Fh Lasergun 1 8 250 03h 00h 7Fh Explosion 2 8 251 KR 337 Drum MAPPING CC0 CC32 PC Tone Name Notes 00h 40h 00h STANDARD 8 6 00h 40h 08h ROOM 8 242 00h 00h 10h POWER 8 243 00h 00h 18h ELECT...

Отзывы: