-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWave_Format.s
More file actions
194 lines (160 loc) · 2.95 KB
/
Wave_Format.s
File metadata and controls
194 lines (160 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
;Notes for Wave
Patterns..
Default Range Bits
EGPeriod 6 0 0-62 2-7
Cycle 2 0 0-3 0-1
Noise 5 0 0-30 3-7
Sample 3 0 0-6 0-2
Note 6 61 0-60 2-7
Volume 2 (4/8/12/15) 3 0-3 0-1
Ornament 4 0 0-14 4-7
Volseq 4 0 0-14 0-3
Command 3 0 0-6 0-2
Param 5 0 0-31 3-7
Note 6 61 0-60 2-7
Volume 2 3 0-3 0-1
Ornament 4 0 0-14 4-7
Volseq 4 0 0-14 0-3
Command 3 0 0-6 0-2
Param 5 0 0-31 3-7
Note 6 61 0-60 2-7
Volume 2 3 0-3 0-1
Ornament 4 0 0-14 4-7
Volseq 4 0 0-14 0-3
Command 3 0 0-6 0-2
Param 5 0 0-31 3-7
11 Bytes per row
64 Rows
24 Patterns
==
16896 For Patterns
Ornaments..
1 Byte per row
32 Rows
15 Ornaments
==
480 for Ornaments
Volseqs..
1 Byte per row
32 Rows
15 Volseqs
==
480 for Volseqs
Samples
8192 for Samples
List
128 for List
Totals..
16896 For Patterns
480 for Ornaments
480 for Effects
8192 for Samples
64 for names(8x8)
128 for List
====
26240 - 6680
Memory Map..
$0500 BASIC (Files)
$1000 Music Memory(26240)
$78C0 Editor(15424)
$B500 !
Areas in detail
Ornaments
Split into header and data areas
Header..
LoopIndex (0-31) or End(128)
Data
2's compliment entries for signed offset of note
However if Zero then loop or end depending on Header
Effects
B0-4
Offset -16 to +15
B5-7
0 Loop(Offset) or 0 to End
1 Noise Off (Offset not used)
2 EG Off (Offset not used)
3 Tone Off (Offset not used)
4 Tone On and Pitch Offset
5 Noise On and Noise Offset
6 EG On and EGPeriod Offset
7 Tone On and Volume Offset
If volume overlaps then ends Effect
List
Split into header and data areas
Data(Up to 127)
B0-6
0-127 Data
B7
0 Pattern in Data(0-23)
1 End(End(0) or Loop back offset(1-127))
Pattern
Note (0-61) Oric C-1 to C-6
0 B-0
1 C-1
2 C#1
3 D-1
4 D#1
5 E-1
6 F-1
7 F#1
8 G-1
9 G#1
10 A-1
11 A#1
12 B-1
13 C-2
14 C#2
15 D-2
16 D#2
17 E-2
18 F-2
19 F#2
20 G-2
21 G#2
22 A-2
23 A#2
24 B-2
25 C-3
26 C#3
27 D-3
28 D#3
29 E-3
30 F-3
31 F#3
32 G-3
33 G#3
34 A-3
35 A#3
36 B-3
37 C-4
38 C#4
39 D-4
40 D#4
41 E-4
42 F-4
43 F#4
44 G-4
45 G#4
46 A-4
47 A#4
48 B-4
49 C-5
50 C#5
51 D-5
52 D#5
53 E-5
54 F-5
55 F#5
56 G-5
57 G#5
58 A-5
59 A#5
60 B-5
61 C-6
Rest (62) or VRest (62+Volume)
62 0 : RST 0 Silence all on channel
62 1 : RST ^ Raise volume
62 2 : RST v Decay volume
62 3 : RST - Normal Rest
Bar (63)
63 0 : === =