ref: ea9952c2d0ca432566410d8bd806b906e02f1e93
parent: 6fd6a416cde2aaf8a62480cf83748dbdecd4762f
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Jul 8 17:46:14 EDT 2020
Clean-up PixTone code a little This is still ASM-accurate
--- a/src/PixTone.cpp
+++ b/src/PixTone.cpp
@@ -154,12 +154,12 @@
+ 128;
if (gWaveModelTable[ptp->oPitch.model][b] < 0)
- dMain = d1 - d1 * 0.5 * -gWaveModelTable[ptp->oPitch.model][b] * ptp->oPitch.top / 64.0 / 64.0 + dMain;
+ dMain += d1 - d1 * 0.5 * -gWaveModelTable[ptp->oPitch.model][b] * ptp->oPitch.top / 64.0 / 64.0;
else
- dMain = d1 + d1 * 2.0 * gWaveModelTable[ptp->oPitch.model][b] * ptp->oPitch.top / 64.0 / 64.0 + dMain;
+ dMain += d1 + d1 * 2.0 * gWaveModelTable[ptp->oPitch.model][b] * ptp->oPitch.top / 64.0 / 64.0;
- dPitch = dPitch + d2;
- dVolume = dVolume + d3;
+ dPitch += d2;
+ dVolume += d3;
}
return TRUE;