173 midi implementation, Ascii code table – Инструкция по эксплуатации Roland xv-5050

Страница 171

Advertising
background image

173

MIDI Implementation

П

р

ил

ож

ен

ие

<Example3> Getting Temporary Performance data (RQ1)
cf.) This operation is the same as Data Transfer function in Utility mode with “PERFORM”
(Type parameter) and “TEMP: -PATCH” (Source parameter) options.

According to the “Parameter Address Map” (p. 160), the start address of Temporary
Performance is assigned as following:

10 00 00 00H

Temporary Performance Common

:

10 00 20 00H

Temporary Performance Part 1

:

10 00 2F 00H

Temporary Performance Part 16

As the data size of Performance Controller is 00 00 00 31H, summation of the size and the
start address of Temporary Performance Part 16 will be;

10 00 2F 00H

+) 00 00 00 31H

10 00 2F 31H

And the size that have to be got should be;

10 00 2F 31H

-) 10 00 00 00H

00 00 2F 31H

Therefore the system exclusive message should be sent is;

F0

41

10

00 10

11

10 00 00 00

00 00 2F 31

??

F7

(1)

(2)

(3)

(4)

(5)

address

data

checksum

(6)

(1) Exclusive Status

(2) ID (Roland)

(3) Device ID (17)

(4) Model ID (XV-5050)

(5) Command ID (RQ1)

(6) End of Exclusive

Calculating the checksum as shown in <Example 2>, we get a message of F0 41 10 6A 11 10
00 00 00 00 00 2F 31 10 F7 to be transmitted.

<Example4> Getting data (RQ1) at once;

Temporary Performance data,
Temporary Patch data of whole part in Performance mode,
Temporary Rhythm data of whole part in Performance mode.

cf.) This operation is the same as Data Transfer function in Utility mode with “PERFORM”
(Type parameter) and “TEMP: +PATCH” (Source parameter) options.

According to the “Parameter Address Map” (p. 160), the start address of the
above all parameters is assigned as following:

10 00 00 00H

Temporary Performance

11 00 00 00H

Temporary Patch (Performance Mode Part 1)

11 10 00 00H

Temporary Rhythm (Performance Mode Part 1)

:

14 60 00 00H

Temporary Patch (Performance Mode Part 16)

14 70 00 00H

Temporary Rhythm (Performance Mode Part 16)

The offset address of Rhythm is also assigned as follows:

00 00 00H

Rhythm Common

:

00 10 00H

Rhythm Tone (Key # 21)

:

01 3E 00H

Rhythm Tone (Key # 108)

As the data size of Rhythm Tone is 00 00 01 41H, summation of the size and the
start address of Temporary Rhythm Tone #108 in Performance mode will be;

14 70 00 00H

01 3E 00H

+) 00 00 01 41H

14 71 3F 41H

And the size that have to be got should be;

14 71 3F 41H

-) 10 00 00 00H

04 71 3F 41H

Therefore the system exclusive message should be sent is;

F0

41

10

00 10

11

10 00 00 00

04 71 3F 41

??

F7

(1)

(2)

(3)

(4)

(5)

address

data

checksum

(6)

(1) Exclusive Status

(2) ID (Roland)

(3) Device ID (17)

(4) Model ID (XV-5050)

(5) Command ID (RQ1)

(6) End of Exclusive

Calculating the checksum as shown in <Example 2>, we get a message of F0 41 10 00 10 11
10 00 00 00 04 71 3F 41 7B F7 to be transmitted.

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 the XV-5050, the default settings for
the Scale Tune feature produce equal temperament.

Just Temperament (Tonic of C)

The principal triads 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 (Key-tone C)

Arabian Scale

C

0

0

-6

C#

0

-8

+45

D

0

+4

-2

Eb

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

Bb

0

+14

-10

B

0

-12

-49

The values in the table are given in cents. Convert these values to hexadecimal, and transmit
them as Exclusive data.
For example, to set the tune (C-B) of the Part 1 Arabian Scale, send the following data:
F0 41 10 42 12 40 11 40 3A 6D 3E 34 0D 38 6B 3C 6F 40 36 0F 76 F7

ASCII Code Table

Patch Name and Performance Name, etc., of MIDI data are described the ASCII code in the
table below.

+——————+——————+——————++——————+——————+——————++——————+——————+——————+
|

D

|

H

| Char ||

D

|

H

| Char ||

D

|

H

| Char |

+——————+——————+——————++——————+——————+——————++——————+——————+——————+
|

32 |

20H |

SP

||

64 |

40H |

@

||

96 |

60H |

`

|

|

33 |

21H |

!

||

65 |

41H |

A

||

97 |

61H |

a

|

|

34 |

22H |

"

||

66 |

42H |

B

||

98 |

62H |

b

|

|

35 |

23H |

#

||

67 |

43H |

C

||

99 |

63H |

c

|

|

36 |

24H |

$

||

68 |

44H |

D

||

100 |

64H |

d

|

|

37 |

25H |

%

||

69 |

45H |

E

||

101 |

65H |

e

|

|

38 |

26H |

&

||

70 |

46H |

F

||

102 |

66H |

f

|

|

39 |

27H |

`

||

71 |

47H |

G

||

103 |

67H |

g

|

|

40 |

28H |

(

||

72 |

48H |

H

||

104 |

68H |

h

|

|

41 |

29H |

)

||

73 |

49H |

I

||

105 |

69H |

i

|

|

42 |

2AH |

*

||

74 |

4AH |

J

||

106 |

6AH |

j

|

|

43 |

2BH |

+

||

75 |

4BH |

K

||

107 |

6BH |

k

|

|

44 |

2CH |

,

||

76 |

4CH |

L

||

108 |

6CH |

l

|

|

45 |

2DH |

||

77 |

4DH |

M

||

109 |

6DH |

m

|

|

46 |

2EH |

.

||

78 |

4EH |

N

||

110 |

6EH |

n

|

|

47 |

2FH |

/

||

79 |

4FH |

O

||

111 |

6FH |

o

|

|

48 |

30H |

0

||

80 |

50H |

P

||

112 |

70H |

p

|

|

49 |

31H |

1

||

81 |

51H |

Q

||

113 |

71H |

q

|

|

50 |

32H |

2

||

82 |

52H |

R

||

114 |

72H |

r

|

|

51 |

33H |

3

||

83 |

53H |

S

||

115 |

73H |

s

|

|

52 |

34H |

4

||

84 |

54H |

T

||

116 |

74H |

t

|

|

53 |

35H |

5

||

85 |

55H |

U

||

117 |

75H |

u

|

|

54 |

36H |

6

||

86 |

56H |

V

||

118 |

76H |

v

|

|

55 |

37H |

7

||

87 |

57H |

W

||

119 |

77H |

w

|

|

56 |

38H |

8

||

88 |

58H |

X

||

120 |

78H |

x

|

|

57 |

39H |

9

||

89 |

59H |

Y

||

121 |

79H |

y

|

|

58 |

3AH |

:

||

90 |

5AH |

Z

||

122 |

7AH |

z

|

|

59 |

3BH |

;

||

91 |

5BH |

[

||

123 |

7BH |

{

|

|

60 |

3CH |

<

||

92 |

5CH |

\

||

124 |

7CH |

|

|

|

61 |

3DH |

=

||

93 |

5DH |

]

||

125 |

7DH |

}

|

|

62 |

3EH |

>

||

94 |

5EH |

v

||——————+——————+——————+

|

63 |

3FH |

?

||

95 |

5FH |

_

|

+——————+——————+——————++——————+——————+——————+

D: decimal
H: hexadecimal

*

“SP” is space.

Advertising