From 5ccb7dfa9354ad2b060b0ab9f784dadc66700536 Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Fri, 14 Jun 2019 16:52:53 +0200 Subject: [PATCH] Reformatted Pixtone.cpp Signed-off-by: Gabriel Ravier --- src/PixTone.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/PixTone.cpp b/src/PixTone.cpp index 760a3c13..63b60f94 100644 --- a/src/PixTone.cpp +++ b/src/PixTone.cpp @@ -139,13 +139,13 @@ BOOL MakePixelWaveData(const PIXTONEPARAMETER *ptp, unsigned char *pData) 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;