ref: 5ccb7dfa9354ad2b060b0ab9f784dadc66700536
parent: 473bd43ca752c73cf501876abaa8caec235dc4b6
author: Gabriel Ravier <[email protected]>
date: Fri Jun 14 12:52:53 EDT 2019
Reformatted Pixtone.cpp Signed-off-by: Gabriel Ravier <[email protected]>
--- a/src/PixTone.cpp
+++ b/src/PixTone.cpp
@@ -139,13 +139,13 @@
c = (int)dVolume % 256;
d = (int)((double)(i * 0x100) / ptp->size);
pData[i] = gWaveModelTable[ptp->oMain.model][a]
- * ptp->oMain.top
- / 64
- * (gWaveModelTable[ptp->oVolume.model][c] * ptp->oVolume.top / 64 + 64)
- / 64
- * envelopeTable[d]
- / 64
- + 128;
+ * ptp->oMain.top
+ / 64
+ * (gWaveModelTable[ptp->oVolume.model][c] * ptp->oVolume.top / 64 + 64)
+ / 64
+ * envelopeTable[d]
+ / 64
+ + 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;