volume portamento (vol porta) on D3xx and D4xx (D4 is fast version, rate * 256)

This commit is contained in:
Adam Lederer 2024-08-23 10:39:14 -07:00
parent a08380182d
commit 310ad13916
11 changed files with 88 additions and 8 deletions

View file

@ -34,7 +34,7 @@ struct DivCSChannelState {
int lastWaitLen;
int note, pitch;
int volume, volMax, volSpeed;
int volume, volMax, volSpeed, volSpeedTarget;
int vibratoDepth, vibratoRate, vibratoPos;
int portaTarget, portaSpeed;
unsigned char arp, arpStage, arpTicks;
@ -56,6 +56,7 @@ struct DivCSChannelState {
volume(0x7f00),
volMax(0),
volSpeed(0),
volSpeedTarget(0),
vibratoDepth(0),
vibratoRate(0),
vibratoPos(0),