one-byte vibrato

This commit is contained in:
tildearrow 2025-04-17 18:58:11 -05:00
parent b1a630f2cd
commit 334d4bab67
6 changed files with 96 additions and 10 deletions

View file

@ -140,11 +140,13 @@ bool DivCSPlayer::tick() {
case 0xc1: // arp time
arpSpeed=(unsigned char)stream.readC();
break;
case 0xc2: // vibrato
chan[i].vibratoDepth=(signed char)stream.readC();
chan[i].vibratoRate=(unsigned char)stream.readC();
case 0xc2: { // vibrato
unsigned char param=stream.readC();
chan[i].vibratoDepth=param&15;
chan[i].vibratoRate=param>>4;
sendPitch=true;
break;
}
case 0xc3: // vibrato range
chan[i].vibratoRange=(unsigned char)stream.readC();
break;