| 1 |
# 5E01 |
| 2 |
|
| 3 |
a fantasy sound chip created by Euly, based on [the Ricoh 2A03 in the NES](nes.md), with some improvements: |
| 4 |
|
| 5 |
- a 37.5% duty cycle, |
| 6 |
- 32 noise pitches instead of 16, and |
| 7 |
- triangle channel becomes a wave channel, with four available waveforms: triangle, saw, sine and square. |
| 8 |
|
| 9 |
## effects |
| 10 |
|
| 11 |
- `11xx`: **write to delta modulation counter.** range is `00` to `7F`. |
| 12 |
- this may be used to attenuate the triangle and noise channels; at `7F`, they will be at about 57% volume. |
| 13 |
- will not work if a sample is playing. |
| 14 |
- `12xx`: **set duty cycle/noise mode/waveform of channel.** |
| 15 |
- may be `0` to `3` for the pulse channels: |
| 16 |
- `0`: 12.5% |
| 17 |
- `1`: 25% |
| 18 |
- `2`: 37.5% |
| 19 |
- `3`: 50% |
| 20 |
- may be `0` or `1` for the noise channel: |
| 21 |
- `0`: long (15-bit LFSR, 32767-step) |
| 22 |
- `1`: short (9-bit LFSR, 93-step) |
| 23 |
- may be `0` to `3` for the wave channel: |
| 24 |
- `0`: triangle |
| 25 |
- `1`: saw |
| 26 |
- `2`: square |
| 27 |
- `3`: sine |
| 28 |
- `13xy`: **setup sweep up.** |
| 29 |
- `x` is the time. |
| 30 |
- `y` is the shift. |
| 31 |
- set to `0` to disable it. |
| 32 |
- `14xy`: **setup sweep down.** |
| 33 |
- `x` is the time. |
| 34 |
- `y` is the shift. |
| 35 |
- set to `0` to disable it. |
| 36 |
- `15xx`: **set envelope mode.** |
| 37 |
- `0`: envelope + length counter. volume represents envelope duration. |
| 38 |
- `1`: length counter. volume represents output volume. |
| 39 |
- `2`: looping envelope. volume represents envelope duration. |
| 40 |
- `3`: constant volume. default value. volume represents output volume. |
| 41 |
- pulse and noise channels only. |
| 42 |
- you may need to apply a phase reset (using the macro) to make the envelope effective. |
| 43 |
- `16xx`: **set length counter.** |
| 44 |
- see [NES](nes.md) for more information. |
| 45 |
- this will trigger phase reset. |
| 46 |
- `17xx`: **set frame counter mode.** |
| 47 |
- `0`: 4-step. |
| 48 |
- `1`: 5-step. |
| 49 |
- `18xx`: **set PCM channel mode.** |
| 50 |
- `00`: PCM (software). |
| 51 |
- `01`: DPCM (hardware). |
| 52 |
- when in DPCM mode, samples will sound muffled (due to its nature), availables pitches are limited, and loop point is ignored. |
| 53 |
- `19xx`: **set triangle linear counter.** |
| 54 |
- `00` to `7F` set the counter. |
| 55 |
- `80` and higher halt it. |
| 56 |
- `20xx`: **set DPCM frequency.** |
| 57 |
- only works in DPCM mode. |
| 58 |
|
| 59 |
## info |
| 60 |
|
| 61 |
this chip uses the [NES](../4-instrument/nes.md) instrument editor. |
| 62 |
|
| 63 |
## chip config |
| 64 |
|
| 65 |
the following options are available in the Chip Manager window: |
| 66 |
|
| 67 |
- **Clock rate**: sets the rate at which the chip will run. |
| 68 |
- **DPCM channel mode**: allows you to set which mode to use for the DPCM channel. |
| 69 |
- DPCM: the default mode, playing 1-bit DPCM samples as supported by the hardware. |
| 70 |
- PCM: this mode provides crispier samples by writing the delta counter directly. uses a lot of CPU time in console. |