Debian Codegraph @

doc/4-instrument/ay8930.md

raw
1 # AY8930 instrument editor
2
3 the AY8930 instrument editor consists of two 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 ## Macros
14
15 - **Volume**: volume sequence.
16 - **Arpeggio**: pitch sequence.
17 - **Noise Freq**: noise generator frequency sequence.
18 - note: global!
19 - **Waveform**: selector of sound type - square wave tone, noise and/or envelope generator.
20 - you may select more than one option.
21 - **Pitch**: fine pitch.
22 - **Phase Reset**: trigger restart of **envelope**.
23 - **Duty**: duty cycle sequence.
24 - **Envelope**: configures the hardware envelope.
25 - **enable**: sets whether envelope is enabled.
26 - **direction**: flips the envelope's direction.
27 - **alternate**: when enabled, the envelope will change direction once it hits a boundary.
28 - **hold**: sets whether the envelope should stop when hitting boundary, or loop.
29 - **AutoEnv Num**: sets the envelope to the channel's frequency multiplied by numerator.
30 - **AutoEnv Den**: sets the envelope to the channel's frequency multiplied by denominator.
31 - these two must be set in order for AutoEnv to work!
32 - **Force Period**: sets the tone period (wavelength).
33 - overrides Arpeggio and Pitch macros.
34 - **Env Period**: sets the envelope period.
35 - ignored if both AutoEnv macros are set.
36 - **Noise AND Mask**: alters the shape/frequency of the noise generator, allowing to produce various interesting sound effects and even PWM phasing.
37 - **Noise OR Mask**: see above.