| 1 |
# SID2 |
| 2 |
|
| 3 |
a fictional chip created by LTVA. the idea is to fix [SID](c64.md) flaws and add more features, but not too much. |
| 4 |
|
| 5 |
unlike SID, it has per-channel volume control, better ADSR envelope which doesn't have bugs, more waveform mixing modes and the ability to play tonal noise waves. |
| 6 |
|
| 7 |
each channel now has its own independent filter. filter cutoff and resonance ranges were extended, as well as the frequency; finally, the chip can hit a B-7 note with default clock speed! |
| 8 |
|
| 9 |
## effects |
| 10 |
|
| 11 |
- `10xx`: **change wave.** lower 4 bits specify the wave: |
| 12 |
- `bit 0`: triangle |
| 13 |
- `bit 1`: saw |
| 14 |
- `bit 2`: pulse |
| 15 |
- `bit 3`: noise |
| 16 |
- `11xx`: **set resonance.** `xx` may be a value between `00` and `FF`. |
| 17 |
- `12xx`: **set filter mode.** the following values are accepted: |
| 18 |
- `00`: filter off |
| 19 |
- `01`: low pass |
| 20 |
- `02`: band pass |
| 21 |
- `03`: low+band pass |
| 22 |
- `04`: high pass |
| 23 |
- `05`: band reject/stop/notch |
| 24 |
- `06`: high+band pass |
| 25 |
- `07`: all pass |
| 26 |
- `13xx`: **disable envelope reset for this channel.** |
| 27 |
- `14xy`: **reset cutoff**: |
| 28 |
- if `x` is not 0: on new note |
| 29 |
- if `y` is not 0: now |
| 30 |
- this effect is not necessary if the instrument's cutoff macro is absolute. |
| 31 |
- `15xy`: **reset duty cycle**: |
| 32 |
- if `x` is not 0: on new note |
| 33 |
- if `y` is not 0: now |
| 34 |
- this effect is not necessary if the instrument's duty macro is absolute. |
| 35 |
- `16xy`: **change additional parameters.** |
| 36 |
- `x` may be one of the following: |
| 37 |
- `0`: attack (`y` from `0` to `F`) |
| 38 |
- `1`: decay (`y` from `0` to `F`) |
| 39 |
- `2`: sustain (`y` from `0` to `F`) |
| 40 |
- `3`: release (`y` from `0` to `F`) |
| 41 |
- `4`: ring modulation (`y` is `0` or `1`) |
| 42 |
- `5`: oscillator sync (`y` is `0` or `1`) |
| 43 |
- `6`: filter mode (`y` is `0` to `7`) |
| 44 |
- `7`: waveform mix mode (`y` is `0` to `3`) |
| 45 |
- `8`: noise mode (`y` is `0` to `3`) |
| 46 |
- `9`: phase reset (`y` is a discarded parameter and does not matter) |
| 47 |
- `A`: envelope key on/key off (`y` is `0` (trigger envelope release) or `1` (restart envelope again)) |
| 48 |
- `B`: filter on/off (`y` is `0` (disable filter) or `1` (enable filter)) |
| 49 |
- `17xx`: **pulse width slide up.** |
| 50 |
- `xx` is speed. if it is `00`, the slide is stopped. |
| 51 |
- `18xx`: **pulse width slide down.** |
| 52 |
- `xx` is speed. if it is `00`, the slide is stopped. |
| 53 |
- `19xx`: **filter cutoff slide up.** |
| 54 |
- `xx` is speed. if it is `00`, the slide is stopped. |
| 55 |
- `1Axx`: **filter cutoff slide down.** |
| 56 |
- `xx` is speed. if it is `00`, the slide is stopped. |
| 57 |
- `3xxx`: **set duty cycle.** `xxx` range is `000` to `FFF`. |
| 58 |
- `4xxx`: **set cutoff.** `xxx` range is `000` to `FFF`. |
| 59 |
|
| 60 |
## info |
| 61 |
|
| 62 |
this chip uses the [SID2](../4-instrument/sid2.md) instrument editor. |