increase range of relative pitch macro

-32768 to 32767 should be enough
This commit is contained in:
tildearrow 2022-05-22 22:47:40 -05:00
parent 3aa8ea3625
commit 82eaa45f5d
38 changed files with 38 additions and 38 deletions

View file

@ -115,7 +115,7 @@ void DivPlatformYMZ280B::tick(bool sysTick) {
if (chan[i].std.pitch.had) {
if (chan[i].std.pitch.mode) {
chan[i].pitch2+=chan[i].std.pitch.val;
CLAMP_VAR(chan[i].pitch2,-2048,2048);
CLAMP_VAR(chan[i].pitch2,-32768,32767);
} else {
chan[i].pitch2=chan[i].std.pitch.val;
}