From aca85f1c82ce9fe938cb258886d7557dbef70441 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 3 Jul 2024 15:08:37 -0500 Subject: [PATCH] ES5506: fix same note not resetting slide reseting? resetting? UGH --- src/engine/platform/es5506.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/engine/platform/es5506.cpp b/src/engine/platform/es5506.cpp index d07ef65e9..f193c9ac7 100644 --- a/src/engine/platform/es5506.cpp +++ b/src/engine/platform/es5506.cpp @@ -602,13 +602,11 @@ void DivPlatformES5506::tick(bool sysTick) { } } if (chan[i].noteChanged.note) { - if (chan[i].currNote!=chan[i].nextNote) { - chan[i].currNote=chan[i].nextNote; - const int nextFreq=NOTE_ES5506(i,chan[i].nextNote); - if (chan[i].nextFreq!=nextFreq) { - chan[i].nextFreq=nextFreq; - chan[i].noteChanged.freq=1; - } + chan[i].currNote=chan[i].nextNote; + const int nextFreq=NOTE_ES5506(i,chan[i].nextNote); + if (chan[i].nextFreq!=nextFreq) { + chan[i].nextFreq=nextFreq; + chan[i].noteChanged.freq=1; } } if (chan[i].noteChanged.freq) {