Yamaha QY20 Midi Data Format - Page 8

Chart 2] Song Data, Chart 4] Qyseq Data Format - midi

Page 8 highlights

[Chart 2] SONG DATA No. function value note 0 song number 0-19 1 song name 1 2 song name 2 3 song name 3 4 song name 4 5 song name 5 6 song name 6 7 song name 7 8 song name 8 20-127 20-127 20-127 20-127 20-127 20-127 20-127 20-127 ascii code ascii code ascii code ascii code ascii code ascii code ascii code ascii code 9 track 1 voice number 0-108 10 track 2 voice number 0-108 11 track 3 voice number 0-108 12 track 4 voice number 0-108 13 chord 1 track voice number 0-108 14 chord 2 track voice number 0-108 15 bass track voice number 0-108 16 drum track voice number 100-108 0- 99 normal voice 100-107 drum voice 108 off voice 17 track 1 volume 18 track 2 volume 19 track 3 volume 20 track 4 volume 21 chord 1 track volume 22 chord 2 track volume 23 bass track volume 24 drum track volume 0-127 0-127 0-127 0-127 0-127 0-127 0-127 0-127 25 track 1 pan 26 track 2 pan 27 track 3 pan 28 track 4 pan 29 chord 1 track pan 30 chord 2 track pan 31 bass track pan 32 reserved 0-14 0-14 0-14 0-14 0-14 0-14 0-14 don't care 33 song tempo 1 34 song tempo 2 20-127 20-127 Values 30 through 250 are transmitted as 2-byte ASCII code. 35 pattern type 36 pattern number 37 section number 0-1 0-99 0-5 0:preset, 1:user 001 - 100 intro, normal, vari., fill1, fill2, ending 38 reserve 39 reserve don't care "0" is transmitted. don't care "0" is transmitted. 13 [Chart 4] QYSEQ DATA FORMAT The QYSEQ data for 1 song begins with F0H mnH (m = song number, n = track number) and consists of multiple track data ending with F2H. Empty tracks are not included. The data appearing between F0H mnH and F2H is listed below. hex description F0 top of track #1 (song 1) 00 --- time/event/control data F2 end of record --- track #2~#4 data -- F0 top of track #5 04 --- time/event/control data -F2 end of record (Notes) QYSEQ time/event/control data format (binary) short time long time 100ttttt 101ttttt 0ttttttt (96th note/bit) (MS -> LS byte in order) short note middle note long note 1100dddd 0kkkkkkk 0vvvvvvv 1101dddd 0ddddddd 0kkkkkkk 0vvvvvvv 1110dddd 0ddddddd 0ddddddd 0kkkkkkk 0vvvvvvv (MS -> LS byte in order) ddd = duration (96th note/bit) kkk = MIDI note number (SUS ON/OFF only) vvv = MIDI velocity base offset no operation pattern play chord velocity offset pitch bend 11110101 0nnnnnnn 11111000 11111001 0nnnnnnn 11111010 0000rrrr 0000cccc 11111101 0nnnnnnn 0nnnnnnn 11111110 0vvvvvvv (No action) (n: pattern number ) (r: root note, c: chord) (n: offset value) (MSB only) (The remaining data is the same as the non-MS byte MIDI format) control change 11111011 0ccccccc 0vvvvvvv (SUS ON/OFF only) program change 11111100 0ppppppp 14

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

[Chart 2] SONG DATA
No.function
value
note
0 song number
0-19
1 song name 1
20-127
ascii code
2 song name 2
20-127
ascii code
3 song name 3
20-127
ascii code
4 song name 4
20-127
ascii code
5 song name 5
20-127
ascii code
6 song name 6
20-127
ascii code
7 song name 7
20-127
ascii code
8 song name 8
20-127
ascii code
9 track 1 voice number
0-108
0- 99 normal voice
10 track 2 voice number
0-108
100-107 drum voice
11 track 3 voice number
0-108
108
off voice
12 track 4 voice number
0-108
13 chord 1 track voice number 0-108
14 chord 2 track voice number 0-108
15 bass track voice number
0-108
16 drum track voice number
100-108
17 track 1 volume
0-127
18 track 2 volume
0-127
19 track 3 volume
0-127
20 track 4 volume
0-127
21 chord 1 track volume
0-127
22 chord 2 track volume
0-127
23 bass track volume
0-127
24 drum track volume
0-127
25 track 1 pan
0-14
26 track 2 pan
0-14
27 track 3 pan
0-14
28 track 4 pan
0-14
29 chord 1 track pan
0-14
30 chord 2 track pan
0-14
31 bass track
pan
0-14
32 reserved
don’t care
33 song tempo 1
20-127
Values 30 through 250 are
34 song tempo 2
20-127
transmitted as 2-byte
ASCII code.
35 pattern type
0-1
0:preset, 1:user
36 pattern number
0-99
001 - 100
37 section number
0-5
intro, normal, vari.,
fill1, fill2, ending
38 reserve
don’t care “0” is transmitted.
39 reserve
don’t care “0” is transmitted.
13
14
[Chart 4] QYSEQ DATA FORMAT
The QYSEQ data for 1 song begins with F0H mnH (m = song number, n = track number) and consists of
multiple track data ending with F2H. Empty tracks are not included.
The data appearing between F0H mnH and F2H is listed below.
hex description
F0
top of track #1 (song 1)
00
--
--
time/event/control data
F2
end of record
--
--
track #2~#4 data
--
F0
top of track #5
04
--
--
time/event/control data
--
F2
end of record
(Notes) QYSEQ time/event/control data format (binary)
short time
100ttttt
(96th note/bit)
long time
101ttttt0ttttttt
(MS -> LS byte in order)
short note
1100dddd0kkkkkkk0vvvvvvv
middle note
1101dddd0ddddddd0kkkkkkk0vvvvvvv
long note
1110dddd0ddddddd0ddddddd0kkkkkkk0vvvvvvv
(MS -> LS byte in order)
ddd = duration
(96th note/bit)
kkk = MIDI note number
(SUS ON/OFF only)
vvv = MIDI velocity
base offset
111101010nnnnnnn
no operation
11111000
(No action)
pattern play
111110010nnnnnnn
(n: pattern number )
chord
111110100000rrrr0000cccc
(r: root note, c: chord)
velocity offset
111111010nnnnnnn0nnnnnnn
(n: offset value)
pitch bend
111111100vvvvvvv
(MSB only)
(The remaining data is the same as the non-MS byte MIDI format)
control change
111110110ccccccc0vvvvvvv
(SUS ON/OFF only)
program change
111111000ppppppp