add auto-envelope mode (29xy effect)

this closes #32
This commit is contained in:
tildearrow 2022-01-20 03:23:03 -05:00
parent 04240ffa46
commit 75ce5f4e2a
11 changed files with 64 additions and 8 deletions

View file

@ -33,3 +33,8 @@ the chip's powerful sound comes from the envelope...
- `24xx`: set envelope period high byte.
- `25xx`: slide envelope period up.
- `26xx`: slide envelope period down.
- `29xy`: enable auto-envelope mode.
- in this mode the envelope period is set to the channel's notes, multiplied by a fraction.
- `x` is the numerator.
- `y` is the denominator.
- if `x` or `y` are 0 this will disable auto-envelope mode.

View file

@ -38,4 +38,9 @@ while emulation of this chip is mostly complete, the additional noise setup regi
- `25xx`: slide envelope period up.
- `26xx`: slide envelope period down.
- `27xx`: set noise AND mask.
- `28xx`: set noise OR mask.
- `28xx`: set noise OR mask.
- `29xy`: enable auto-envelope mode.
- in this mode the envelope period is set to the channel's notes, multiplied by a fraction.
- `x` is the numerator.
- `y` is the denominator.
- if `x` or `y` are 0 this will disable auto-envelope mode.

View file

@ -29,7 +29,7 @@ its soundchip is a 3-in-1: FM, YM2149 (AY-3-8910 clone) and ADPCM in a single pa
- `00`: square
- `01`: noise
- `02`: square and noise
- `03`: envelope
- `03`: nothing (apparently)
- `04`: envelope and square
- `05`: envelope and noise
- `06`: envelope and square and noise
@ -52,3 +52,8 @@ its soundchip is a 3-in-1: FM, YM2149 (AY-3-8910 clone) and ADPCM in a single pa
- `24xx`: set envelope period high byte.
- `25xx`: slide envelope period up.
- `26xx`: slide envelope period down.
- `29xy`: enable SSG auto-envelope mode.
- in this mode the envelope period is set to the channel's notes, multiplied by a fraction.
- `x` is the numerator.
- `y` is the denominator.
- if `x` or `y` are 0 this will disable auto-envelope mode.