| 1 |
# Commodore Amiga |
| 2 |
|
| 3 |
a computer with a desktop OS, lifelike graphics and 4 channels of PCM sound in 1985? no way! |
| 4 |
|
| 5 |
in this very computer music trackers were born... |
| 6 |
|
| 7 |
imported MOD files use this chip, and will set A-4 tuning to 436. |
| 8 |
|
| 9 |
## amplitude/period modulation |
| 10 |
|
| 11 |
Amiga has support for (rather primitive) amplitude and period (frequency) modulation. |
| 12 |
however, nobody has used this feature as it is rather useless, not well-documented and works in a complicated way. |
| 13 |
|
| 14 |
Amiga sample playback is done by two chips: Paula (the one that you probably know) and Agnus (the one that actually feeds Paula with samples). |
| 15 |
Agnus has several DMA (direct memory access) units which read from chip memory independent of the CPU. four of these DMA units are used for samples. |
| 16 |
|
| 17 |
when DMA is enabled, Paula requests sample data from Agnus, and then plays these samples back. |
| 18 |
there's a catch though. since the data bus is 16-bit, Paula requests **two** 8-bit samples at once! this explains why: |
| 19 |
- the sample length registers are in words rather than bytes (thereby allowing samples up to 131070 in length) |
| 20 |
- the maximum playback rate (31250Hz PAL; ~31469Hz NTSC) is two times the HBlank rate (Agnus fetches samples on HBlank, around 15625Hz on PAL or ~15734Hz on NTSC) |
| 21 |
|
| 22 |
during normal sample playback, the first sample is output and then the second. afterwards, two more samples are fetched, and so on. |
| 23 |
|
| 24 |
now, when amplitude or period modulation are enabled, things work differently. |
| 25 |
the channel is silenced, and the two 8-bit samples are **treated as a big-endian 16-bit number**, which is then written to the next channel's volume or period. |
| 26 |
|
| 27 |
in the case of amplitude modulation, only the second sample is significant because the volume register uses 7 bits (to represent 0 to 64 (65 to 127 are treated as 64)) and the other bits are ignored. |
| 28 |
|
| 29 |
in the case of period modulation, both samples are significant. the first sample is the upper byte, and the second is the lower byte. |
| 30 |
|
| 31 |
## effects |
| 32 |
|
| 33 |
- `10xx`: **toggle low-pass filter.** `0` turns it off and `1` turns it on. |
| 34 |
- `11xx`: **toggle amplitude modulation with the next channel.** |
| 35 |
- does not work on the last channel. |
| 36 |
- `12xx`: **toggle period (frequency) modulation with the next channel.** |
| 37 |
- does not work on the last channel. |
| 38 |
- `13xx`: **change wave.** |
| 39 |
- only works when "Mode" is set to "Wavetable" in the instrument. |
| 40 |
|
| 41 |
## info |
| 42 |
|
| 43 |
this chip uses the [Generic Sample](../4-instrument/sample.md) instrument editor. |
| 44 |
|
| 45 |
- the maximum rate for sample playback is technically 31469Hz but anything higher than 28867Hz will sound glitchy on hardware. |
| 46 |
- sample lengths and loop will be set to an even number. |
| 47 |
- samples can't be longer than 131070. |
| 48 |
- samples must be 8-bit. Furnace handles conversion automatically. |
| 49 |
|
| 50 |
## chip config |
| 51 |
|
| 52 |
the following options are available in the Chip Manager window: |
| 53 |
|
| 54 |
- **Stereo separation**: sets the amount of left/right separation. |
| 55 |
- **Model**: allows you to change the chipset. |
| 56 |
- Amiga 500 (OCS): has a low-pass filter on top of the user-selectable filter. |
| 57 |
- Amiga 1200 (AGA): doesn't have the aforementioned low-pass filter. |
| 58 |
- **Chip memory**: more chip memory means more space for samples. |
| 59 |
- **PAL**: run the chip at PAL clock (3.54MHz) instead of NTSC (3.58MHz). |
| 60 |
- **Bypass frequency limits**: when enabled, the ~31KHz frequency limit is disabled, allowing you to play higher notes. |