Debian Codegraph @

android/app/jni/doc/3-pattern/effects.md

raw
1 # effect list
2
3 some of the effect numbers are taken from ProTracker / FastTracker 2.
4
5 however, effects are continuous (unless specified), which means you only need to type it once and then stop it with an effect value of `00` or no effect value at all.
6
7 ## volume
8
9 - `0Axy`: **Volume slide.**
10 - if `x` is 0 then this slides volume down by `y` each tick.
11 - if `y` is 0 then this slides volume up by `x` each tick.
12 - `FAxy`: **Fast volume slide.** same as `0Axy` above but 4× faster.
13 - `F3xx`: **Fine volume slide up.** same as `0Ax0` but 64× slower.
14 - `F4xx`: **Fine volume slide down.** same as `0A0x` but 64× slower.
15 - `F8xx`: **Single tick volume up.** adds `x` to volume.
16 - `F9xx`: **Single tick volume down.** subtracts `x` from volume.
17 - ---
18 - `D3xx`: **Volume portamento.** slides the volume to the one specified in the volume column. `x` is the slide speed.
19 - a volume _must_ be present with this effect for it to work.
20 - `D4xx`: **Volume portamento (fast).** like `D3xx` but 4× faster.
21 - ---
22 - `07xy`: **Tremolo.** changes volume to be "wavy" with a sine LFO. `x` is the speed. `y` is the depth.
23 - tremolo is downward only.
24 - maximum tremolo depth is -60 volume steps.
25 - ---
26 - `DCxx`: **Delayed mute.** sets channel volume to 0 after `xx` ticks.
27
28 ## pitch
29
30 - `E5xx`: **Set pitch.** `00` is -1 semitone, `80` is base pitch, `FF` is nearly +1 semitone.
31 - `01xx`: **Pitch slide up.**
32 - `02xx`: **Pitch slide down.**
33 - `F1xx`: **Single tick pitch up.**
34 - `F2xx`: **Single tick pitch down.**
35 - ---
36 - `03xx`: **Portamento.** slides the currently playing note's pitch toward the new note. `x` is the slide speed.
37 - a note _must_ be present with this effect for it to work.
38 - the effect stops automatically when it reaches the new note.
39 - `E1xy`: **Note slide up.** `x` is the speed, while `y` is how many semitones to slide up.
40 - `E2xy`: **Note slide down.** `x` is the speed, while `y` is how many semitones to slide down.
41 - ---
42 - `EAxx`: **Toggle legato.** while on, new notes instantly change the pitch of the currently playing sound instead of starting it over.
43 - `E6xy`: **Quick legato (compatibility).** transposes note by `y` semitones after `x` ticks.
44 - if `x` is between 0 and 7, it transposes up.
45 - if `x` is between 8 and F, it transposes down.
46 - `E8xy`: **Quick legato up**. transposes note up by `y` semitones after `x` ticks.
47 - `E9xy`: **Quick legato down**. transposes note down by `y` semitones after `x` ticks.
48 - `00xy`: **Arpeggio.** this effect produces a rapid cycle between the current note, the note plus `x` semitones and the note plus `y` semitones.
49 - as an example, start with a chord of C-3, G-3, and D#4. the G-3 and D#4 are 7 and 15 semitones higher than the root note, so the corresponding effect is `007F`.
50 - `E0xx`: **Set arpeggio speed.** this sets the number of ticks between arpeggio values. default is 1.
51 - ---
52 - `04xy`: **Vibrato.** makes the pitch oscillate. `x` is the speed, while `y` is the depth.
53 - maximum vibrato depth is ±1 semitone.
54 - `E3xx`: **Set vibrato shape.** `xx` may be one of the following:
55 - `00`: sine (default)
56 - `01`: sine (upper portion only)
57 - `02`: sine (lower portion only)
58 - `03`: triangle
59 - `04`: ramp up
60 - `05`: ramp down
61 - `06`: square
62 - `07`: random
63 - `08`: square (up)
64 - `09`: square (down)
65 - `0a`: half sine (up)
66 - `0b`: half sine (down)
67 - `E4xx`: **Set vibrato range** in 1/16th of a semitone.
68
69 ## panning
70
71 not all chips support these effects.
72
73 - `08xy`: **Set panning.** changes stereo volumes independently. `x` is the left channel and `y` is the right one.
74 - `88xy`: **Set rear panning.** changes rear channel volumes independently. `x` is the rear left channel and `y` is the rear right one.
75 - `81xx`: **Set volume of left channel** (from `00` to `FF`).
76 - `82xx`: **Set volume of right channel** (from `00` to `FF`).
77 - `89xx`: **Set volume of rear left channel** (from `00` to `FF`).
78 - `8Axx`: **Set volume of rear right channel** (from `00` to `FF`).
79 - ---
80 - `80xx`: **Set panning (linear).** this effect behaves more like other trackers:
81 - `00` is left.
82 - `80` is center.
83 - `FF` is right.
84 - ---
85 - `83xy`: **Panning slide.**
86 - if `y` is 0 then this pans to the left by `x` each tick.
87 - if `x` is 0 then this pans to the right by `y` each tick.
88 - be noted that panning macros override this effect.
89 - `84xy`: **Panbrello.** makes panning oscillate. `x` is the speed, while `y` is the depth.
90 - be noted that panning macros override this effect.
91
92 ## time
93
94 - `09xx`: **Set speed/groove.** if no grooves are defined, this sets speed. if alternating speeds are active, this sets the first speed.
95 - `0Fxx`: **Set speed 2.** during alternating speeds or a groove, this sets the second speed.
96 - ---
97 - `Cxxx`: **Set tick rate.** changes tick rate to `xxx` Hz (ticks per second).
98 - `xxx` may be from `000` to `3FF`.
99 - `F0xx`: **Set BPM.** changes tick rate according to beats per minute. range is `01` to `FF`.
100 - ---
101 - `FDxx`: **Set virtual tempo numerator.** sets the virtual tempo's numerator to the effect value.
102 - `FExx`: **Set virtual tempo denominator.** sets the virtual tempo's denominator to the effect value.
103 - ---
104 - `0Bxx`: **Jump to order.** `x` is the order to play after the current row.
105 - this marks the end of a loop with order `x` as the loop start.
106 - `0Dxx`: **Jump to next pattern.** skips the current row and remainder of current order. `x` is the row at which to start playing the next pattern.
107 - this can be used to shorten the current order as though it had a different pattern length.
108 - `FFxx`: **Stop song.** stops playback and ends the song. `x` is ignored.
109
110 ## note
111
112 - `0Cxx`: **Retrigger.** repeats current note every `xx` ticks.
113 - this effect is not continuous; it must be entered on every row.
114 - `ECxx`: **Note cut.** triggers note off after `xx` ticks. this triggers key off in FM/hardware envelope chips, or cuts note otherwise.
115 - `EDxx`: **Note delay.** delays note by `x` ticks.
116 - `FCxx`: **Note release.** releases current note after `xx` ticks. this releases macros and triggers key off in FM/hardware envelope chips.
117 - `E7xx`: **Macro release.** releases macros after `xx` ticks. this does not trigger key off.
118
119 ## sample offset
120
121 these effects make the current playing sample on the channel jump to a specific position.
122 only some chips support this effect.
123
124 sample offset is a 24-bit (3 byte) number.
125
126 - `90xx`: **Set sample offset (first byte).**
127 - `91xx`: **Set sample offset (second byte).**
128 - `92xx`: **Set sample offset (third byte).**
129
130 you may use these effects simultaneously in a row.
131
132 if you do not set a byte, its last value will be used.
133
134 in previous versions of Furnace a `9xxx` effect existed which set the sample position to `$xxx00` (`xxx` was effectively multiplied by 256). this maps to `920x 91xx` in current Furnace.
135
136 ## other
137
138 - `EBxx`: **Set LEGACY sample mode bank.** selects sample bank. used only for compatibility.
139 - does not apply on Amiga.
140 - `EExx`: **Send external command.**
141 - this effect is currently incomplete.
142 - `F5xx`: **Disable macro.**
143 - `F6xx`: **Enable macro.**
144 - `F7xx`: **Restart macro.**
145 - see macro table at the end of this document for possible values.
146
147 additionally, [each chip has its own effects](../7-systems/README.md).
148
149 ## macro table
150
151 ID | macro
152 -----|-----------------------------
153 `00` | volume
154 `01` | arpeggio
155 `02` | duty/noise
156 `03` | waveform
157 `04` | pitch
158 `05` | extra 1
159 `06` | extra 2
160 `07` | extra 3
161 `08` | extra A (ALG)
162 `09` | extra B (FM)
163 `0A` | extra C (FMS)
164 `0B` | extra D (AMS)
165 `0C` | panning left
166 `0D` | panning right
167 `0E` | phase reset
168 `0F` | extra 4
169 `10` | extra 5
170 `11` | extra 6
171 `12` | extra 7
172 `13` | extra 8
173 | | **operator 1 macros**
174 `20` | AM
175 `21` | AR
176 `22` | DR
177 `23` | MULT
178 `24` | RR
179 `25` | SL
180 `26` | TL
181 `27` | DT2
182 `28` | RS
183 `29` | DT
184 `2A` | D2R
185 `2B` | SSG-EG
186 `2C` | DAM
187 `2D` | DVB
188 `2E` | EGT
189 `2F` | KSL
190 `30` | SUS
191 `31` | VIB
192 `32` | WS
193 `33` | KSR
194 `40` | **operator 2 macros**
195 `60` | **operator 3 macros**
196 `80` | **operator 4 macros**
197
198 the interpretation of duty, wave and extra macros depends on chip/instrument type:
199
200 ex | FM | OPM | OPZ | OPLL | AY-3-8910 | AY8930 | Lynx | C64 |
201 ---|--------|-----------|-----------|-------|------------|------------|----------|---------------|
202 D | NoiseF | NoiseFreq | | | NoiseFreq | NoiseFreq | Duty/Int | Duty |
203 W | | LFO Shape | LFO Shape | Patch | Waveform | Waveform | | Waveform |
204 1 | | AMD | AMD | | | Duty | | FilterMode |
205 2 | | PMD | PMD | | Envelope | Envelope | | Resonance |
206 3 | LFOSpd | LFO Speed | LFO Speed | | AutoEnvNum | AutoEnvNum | | Filter Toggle |
207 A | ALG | ALG | ALG | | AutoEnvDen | AutoEnvDen | | Cutoff |
208 B | FB | FB | FB | | | Noise AND | | |
209 C | FMS | FMS | FMS | | | Noise OR | | |
210 D | AMS | AMS | AMS | | | | | |
211 4 | OpMask | OpMask | | | | | | Special |
212 5 | | | AMD2 | | | | | Attack |
213 6 | | | PMD2 | | | | | Decay |
214 7 | | | LFO2Speed | | | | | Sustain |
215 8 | | | LFO2Shape | | | | | Release |
216
217 ex | SAA1099 | X1-010 | Namco 163 | FDS | Sound Unit | ES5506 | MSM6258 |
218 ---|----------|------------|------------|-----------|------------|-----------|----------|
219 D | | | Wave Pos | | Duty | Filt Mode | FreqDiv |
220 W | Waveform | Waveform | Waveform | Waveform | Waveform | | |
221 1 | Envelope | EnvMode | WaveLen | Mod Depth | Cutoff | Filter K1 | ClockDiv |
222 2 | | Envelope | WaveUpdate | Mod Speed | Resonance | Filter K2 | |
223 3 | | AutoEnvNum | WaveLoad W | | Control | Env Count | |
224 A | | AutoEnvDen | WaveLoad P | | | Control | |
225 B | | | WaveLoad L | | | | |
226 C | | | WaveLoad T | | | | |
227 D | | | | | | | |
228 4 | | | | | PResetTime | EnvRampL | |
229 5 | | | | | | EnvRampR | |
230 6 | | | | | | EnvRampK1 | |
231 7 | | | | | | EnvRampK2 | |
232 8 | | | | | | Env Mode | |
233
234 ex | QSound | SNES | MSM5232 | SID2 |
235 ---|--------------|-----------|-----------|---------------|
236 D | Echo Level | NoiseFreq | GroupCtrl | Duty |
237 W | | Waveform | | Waveform |
238 1 | EchoFeedback | Special | GroupAtk | Filter mode |
239 2 | Echo Length | Gain | GroupDec | Resonance |
240 3 | | | Noise | Filter toggle |
241 A | | | | Filter cutoff |
242 B | | | | |
243 C | | | | Noise mode |
244 D | | | | Wave mix mode |
245 4 | | | | Special |
246 5 | | | | Attack |
247 6 | | | | Decay |
248 7 | | | | Sustain |
249 8 | | | | Release |
250
251
252 SID3 instrument also uses some of the FM operators macros in main macros list:
253
254 ex | SID3 |
255 ------|-------------------------------|
256 D | Duty |
257 W | Waveform |
258 1 | Special |
259 2 | Attack |
260 3 | Decay |
261 A | Special wave |
262 B | Phase Mod source |
263 C | Ring Mod source |
264 D | Hard sync source |
265 4 | Sustain |
266 5 | Sustain rate |
267 6 | Release |
268 7 | LFSR feedback bits |
269 8 | Wave mix mode |
270 OP1 AM| Key On/Off |
271 OP2 AM| Noise phase reset |
272 OP3 AM| Envelope reset |
273 OP4 AM| Noise Arpeggio |
274 OP1 AR| Noise Pitch |
275 OP2 AR| 1-bit noise/PCM mode |
276 OP3 AR| Channel signal inversion |
277 OP4 AR| Feedback |
278
279 SID3 instrument uses FM operators macros for filters:
280
281 ex | SID3 |
282 -----|-------------------------------|
283 D2R | Cutoff |
284 DAM | Resonance |
285 DR | Filter toggle |
286 DT2 | Distortion level |
287 DT | Output volume |
288 DVB | Connect to channel input |
289 EGT | Connect to channel output |
290 KSL | Connection matrix row |
291 KSR | Filter mode |