Debian Codegraph @

android/app/jni/doc/7-systems/soundunit.md

raw
1 # tildearrow Sound Unit
2
3 a fantasy sound chip, used in the specs2 fantasy computer designed by tildearrow.
4
5 it has the following capabilities:
6 - 8 channels of either waveform or sample
7 - stereo sound
8 - 8 waveforms (pulse, saw, sine, triangle, noise, periodic noise, XOR sine and XOR triangle)
9 - 128 widths for the pulse wave
10 - per-channel resonant filter
11 - ring modulation
12 - volume, frequency and cutoff sweep units (per-channel)
13 - phase reset timer (per-channel)
14
15 ## effects
16
17 - `10xx`: **set waveform.**
18 - `0`: pulse wave
19 - `1`: sawtooth
20 - `2`: sine wave
21 - `3`: triangle wave
22 - `4`: noise
23 - `5`: periodic noise
24 - `6`: XOR sine
25 - `7`: XOR triangle
26 - `12xx`: **set pulse width.** range is `0` to `7F`.
27 - `13xx`: **set resonance of filter.** range is `0` to `FF`.
28 - despite what the internal effects list says (`0` to `F`), you can use a resonance value from `0` to `FF` (255).
29 - `14xx`: **set filter mode and ringmod.**
30 - bit 0: ring mod
31 - bit 1: low pass
32 - bit 2: high pass
33 - bit 3: band pass
34 - `15xx`: **set frequency sweep period low byte.**
35 - `16xx`: **set frequency sweep period high byte.**
36 - `17xx`: **set volume sweep period low byte.**
37 - `18xx`: **set volume sweep period high byte.**
38 - `19xx`: **set cutoff sweep period low byte.**
39 - `1Axx`: **set cutoff sweep period high byte.**
40 - `1Bxx`: **set frequency sweep boundary.**
41 - `1Cxx`: **set volume sweep boundary.**
42 - `1Dxx`: **set cutoff sweep boundary.**
43 - `1Exx`: **set phase reset period low byte.**
44 - `1Fxx`: **set phase reset period high byte.**
45 - `20xx`: **toggle frequency sweep.**
46 - bit 0-6: speed
47 - bit 7: up direction
48 - `21xx`: **toggle volume sweep.**
49 - bit 0-4: speed
50 - bit 5: up direction
51 - bit 6: loop
52 - bit 7: alternate
53 - `22xx`: **toggle cutoff sweep.**
54 - bit 0-6: speed
55 - bit 7: up direction
56 - `4xxx`: **set cutoff.** range is `0` to `FFF`.
57
58 ## info
59
60 this chip uses the [Sound Unit](../4-instrument/su.md) instrument editor.
61
62 ## chip config
63
64 the following options are available in the Chip Manager window:
65
66 - **CPU rate**: sets the rate at which the chip will run.
67 - **Sample memory**: sets the amount of memory available for samples.
68 - **DAC resolution**: sets output resolution.
69 - **Enable echo**: guess.
70 - **Swap echo channels**: puts left into right and vice-versa.
71 - **Echo delay**: set echo time.
72 - **Echo resolution**: set echo resolution. sacrifices quality for time.
73 - **Echo feedback**: guess.
74 - **Echo volume**: yep, guess again.