Debian Codegraph @

doc/4-instrument/su.md

raw
1 # tildearrow Sound Unit instrument editor
2
3 this instrument editor has two tabs.
4
5 ## Sound Unit
6
7 for sample settings, see [the Sample instrument editor](sample.md).
8
9 the differences are:
10 - the lack of an "Use wavetable" option
11 - the presence of a "Use sample" one
12 - the presence of a "**Switch roles of frequency and phase reset timer**" option. when enabled, this writes frequency to the phase reset timer register rather than the frequency register
13 - this may be used to create sync-like effects.
14
15 ## Macros
16
17 - **Volume**: volume sequence.
18 - **Arpeggio**: pitch sequence.
19 - **Duty/Noise**: waveform duty cycle sequence.
20 - **Waveform**: select waveform.
21 - `0`: pulse wave
22 - `1`: sawtooth
23 - `2`: sine wave
24 - `3`: triangle wave
25 - `4`: noise
26 - `5`: periodic noise
27 - `6`: XOR sine
28 - `7`: XOR triangle
29 - **Panning**: stereo panning sequence.
30 - **Pitch**: fine pitch.
31 - **Phase Reset**: trigger restart of waveform.
32 - **Cutoff**: set filter cutoff.
33 - **Resonance**: set filter resonance.
34 - values that are too high may distort the output!
35 - **Control**: filter parameter/ring mod sequence.
36 - **band pass**: a band-pass filter. cutoff determines which part of the sound is heard (from bass to treble).
37 - **high pass**: a high-pass filter. higher cutoff values result in a less "bassy" sound.
38 - **low pass**: a low-pass filter. the lower the cutoff, the darker the sound.
39 - **ring mod**: enable ring modulation with previous channel.
40 - note: square wave goes from 0 to volume, so in that case it acts more like amplitude modulation.
41 - **Phase Reset Timer**: sets the phase reset timer.
42 - if the "Switch roles of frequency and phase reset timer" option in the Sound Unit tab is enabled, this macro controls the frequency register instead.