-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.txt
231 lines (229 loc) · 6.42 KB
/
events.txt
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
E# Name Len
-- ------------------------ ---
90 RepeatLastPause 0
91 PauseAndAdd 1
uint8: duration
92 Pause8 1
uint8: duration
93 Pause16 2
uint16: duration
94 Pause24 3
uint24: duration
95 PauseWhileActive 1
uint8: polling interval
96 StopInvalidTrack 0
97 StopInvalidTrack 0
98 EndOfTrack 0
99 SetLoopPoint 0
9a StopInvalidTrack 0
9b StopInvalidTrack 0
9c Segno 1
uint8: number of repeats
9d DalSegno 0
9e ToCoda 0
9f StopInvalidTrack 0
a0 SetOctave 1
uint8: octave
a1 AddOctave 1
sint8: octaves
a2 StopInvalidTrack 0
a3 StopInvalidTrack 0
a4 SetTempo 1
uint8: BPM
a5 SetTempo2 1
uint8: BPM
a6 StopInvalidTrack 0
a7 StopInvalidTrack 0
a8 SetSwdlAndBank 2
uint8: swdl
uint8: bank
a9 SetSwdl 1
uint8: swdl
aa SetBank 1
uint8: bank
ab NoOp8 1
ac SetProgram 1
uint8: program ID
ad StopInvalidTrack 0
ae StopInvalidTrack 0
af SweepSongVolume 3
uint16: sweep rate
uint8: target volume
b0 DisableEnvelope 0
b1 SetEnvelopeAttack 1
uint8: attack
b2 SetEnvelopeAttackTime 1
uint8: time
b3 SetEnvelopeHold 1
uint8: hold
b4 SetEnvelopeDecaySustain 2
uint8: decay (0xFF: don't change)
uint8: sustain (0xFF: don't change)
b5 SetEnvelopeFade 1
uint8: fade
b6 SetEnvelopeRelease 1
uint8: release
b7 StopInvalidTrack 0
b8 StopInvalidTrack 0
b9 StopInvalidTrack 0
ba StopInvalidTrack 0
bb StopInvalidTrack 0
bc SetNoteVolume 1
uint8: volume
bd StopInvalidTrack 0
be SetChannelPan 1
uint8: pan
bf EventBF 1
unknown
-- sets or clears flag bit 0
c0 EventC0 0
unknown
-- sets flag bit 1
c1 StopInvalidTrack 0
c2 StopInvalidTrack 0
c3 SetChannelVolume 1
uint8: volume
c4 StopInvalidTrack 0
c5 StopInvalidTrack 0
c6 StopInvalidTrack 0
c7 StopInvalidTrack 0
c8 StopInvalidTrack 0
c9 StopInvalidTrack 0
ca StopInvalidTrack 0
cb NoOp16 2
cc StopInvalidTrack 0
cd StopInvalidTrack 0
ce StopInvalidTrack 0
cf StopInvalidTrack 0
d0 SetFineTune 1
uint8: tune
d1 AddToFineTune 1
uint8: tune change
d2 SetCoarseTune 1
uint8: tune
d3 AddToTune 2
uint16: tune
d4 SweepTune 3
uint16: sweep rate
uint8: target tune
d5 SetRandomNoteRange 2
uint8: min random range
uint8: max random range
d6 SetDetuneRange 2
uint16: maximum random detune
d7 SetPitchBend 2
sint16: bend amount (see 0xdb)
d8 EventD8 2
uint16: ???
-- modifies an unused parameter
d9 StopInvalidTrack 0
da StopInvalidTrack 0
db SetPitchBendRange 1
uint8: maximum bend in semitones
dc ReplaceLFO1AsPitch 5
uint16: LFO rate
uint16: LFO depth
uint8: waveform (see f2)
dd SetLFO1DelayFade 4
TODO
de StopInvalidTrack 0
df SetLFO1ToPitchEnabled 1
bool: if true, turns on LFO1 and connects it to pitch
if false, disables LFO1
e0 SetTrackVol 1
uint8: volume
e1 AddToTrackVol 1
uint8: volume change
e2 SweepTrackVol 3
uint16: sweep rate
uint8: target volume
e3 SetExpression 1
uint8: expression
e4 ReplaceLFO2AsVolume 5
TODO
e5 SetLFO2DelayFade 4
TODO
e6 StopInvalidTrack 0
e7 SetLFO2ToVolumeEnabled 1
bool: if true, turns on LFO2 and connects it to volume
if false, disables LFO2
e8 SetPan 1
uint8: pan
e9 AddToPan 1
uint8: pan
ea SweepPan 3
uint16: sweep rate
uint8: target pan
eb StopInvalidTrack 0
ec ReplaceLFO3AsPan 5
TODO
ed SetLFO3DelayFade 4
TODO
ee StopInvalidTrack 0
ef SetLFO3ToPanEnabled 1
bool: if true, turns on LFO3 and connects it to pan
if false, disables LFO3
f0 ReplaceLFO 5
uint16: LFO rate in Hz
uint16: LFO depth
uint8: waveform selection (see 0xf2)
LFO delay and LFO fade time are set to 0
applies to target LFO (see 0xf2)
f1 SetLFODelayFade 4
uint16: LFO delay
uint16: LFO fade time
See below for more details
f2 SetLFOParam 2
uint8: parameter selection
1: target LFO
2: enabled
3: route (see 0xf3)
4: waveform selection
0: none
1: square
2: triangle
3: sine
4: unknown
5: saw
6: noise
7: random
5: LFO rate (units depend on waveform)
TODO: determine exact scaling factors
6: LFO depth
7: LFO delay / 20
8: LFO delay fine
9: LFO delay coarse
A: LFO fade / 20
sint8: new value
f3 SetLFORoute 3
uint8: target LFO
uint8: enabled
uint8: route
0: disconnected
1: pitch
2: volume
3: pan
4: filter
sets target LFO (see 0xf2)
f4 StopInvalidTrack 0
f5 StopInvalidTrack 0
f6 EventF6 1
unknown
enables/disables an unknown feature used by cutscenes
f7 StopInvalidTrack 0
f8 NoOp16_2 2
f9 StopInvalidTrack 0
fa StopInvalidTrack 0
fb StopInvalidTrack 0
fc StopInvalidTrack 0
fd StopInvalidTrack 0
fe StopInvalidTrack 0
ff StopInvalidTrack 0
LFO delay specifies a time in seconds before the LFO takes effect.
It currently appears that combining a nonzero delay with a fade-out may
result in the LFO suddenly jumping from 0 to its full depth immediately
after the delay period before fading out again.
LFO fade specifies a fade in/out time in seconds after the LFO delay time.
A negative value means that the LFO's depth starts at 0 and increases to
its full value over the fade time. A positive value means that the LFO's
depth starts at its full value and decreases to 0 over the fade time.