From 8f03964fbb43ac518cee802cdade64e09785c553 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 20 Feb 2022 22:08:47 -0500 Subject: [PATCH] NES: fix noise being totally wrong --- src/engine/platform/nes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/platform/nes.cpp b/src/engine/platform/nes.cpp index 628cecb5d..3266b2936 100644 --- a/src/engine/platform/nes.cpp +++ b/src/engine/platform/nes.cpp @@ -198,7 +198,7 @@ void DivPlatformNES::tick() { int ntPos=chan[i].baseFreq; if (ntPos<0) ntPos=0; if (ntPos>252) ntPos=252; - chan[i].freq=(parent->song.properNoiseLayout)?(15-(chan[i].baseFreq&15)):(noiseTable[ntPos])-1; + chan[i].freq=(parent->song.properNoiseLayout)?(15-(chan[i].baseFreq&15)):(noiseTable[ntPos]); } else { chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,true)-1; if (chan[i].freq>2047) chan[i].freq=2047;