| 1 |
# AY-3-8910 instrument editor |
| 2 |
|
| 3 |
the AY-3-8910 instrument editor consists of three tabs. |
| 4 |
|
| 5 |
## Sample |
| 6 |
|
| 7 |
for sample settings, see [the Sample instrument editor](sample.md). |
| 8 |
|
| 9 |
the only differences are the lack of an "Use wavetable" option, and the presence of a "Use sample" one. |
| 10 |
|
| 11 |
note that using samples on AY is CPU expensive! |
| 12 |
|
| 13 |
## Timer Macros |
| 14 |
- **Timer FX**: timer effect type sequence. 0- off, 1- tone PWM, 2- envelope distortion, 3- reserved |
| 15 |
- **TFX Offset**: PWM speed sequence. |
| 16 |
- **Timer Num and Den**: multiplier of a virtual square wave modulator (?) |
| 17 |
- **PWM Boundary**: sets the range of a pulse width modulation |
| 18 |
|
| 19 |
note that timer effects might not be supported by VGM players, and are rather CPU expensive! |
| 20 |
## Macros |
| 21 |
|
| 22 |
- **Volume**: volume sequence. |
| 23 |
- **Arpeggio**: pitch sequence. |
| 24 |
- **Noise Freq**: noise generator frequency sequence. |
| 25 |
- note: global! |
| 26 |
- **Waveform**: selector of sound type - square wave tone, noise and/or envelope generator. |
| 27 |
- you may select more than one option. |
| 28 |
- **Pitch**: fine pitch. |
| 29 |
- **Phase Reset**: trigger restart of **envelope**. |
| 30 |
- **Envelope**: configures the hardware envelope. |
| 31 |
- **enable**: sets whether envelope is enabled. |
| 32 |
- **direction**: flips the envelope's direction. |
| 33 |
- **alternate**: when enabled, the envelope will change direction once it hits a boundary. |
| 34 |
- **hold**: sets whether the envelope should stop when hitting boundary, or loop. |
| 35 |
- **AutoEnv Num**: sets the envelope to the channel's frequency multiplied by numerator. |
| 36 |
- **AutoEnv Den**: sets the envelope to the channel's frequency multiplied by denominator. |
| 37 |
- these two must be set in order for AutoEnv to work! |
| 38 |
- **Force Period**: sets the tone period (wavelength). |
| 39 |
- overrides Arpeggio and Pitch macros. |
| 40 |
- **Env Period**: sets the envelope period. |
| 41 |
- ignored if both AutoEnv macros are set. |