ES5506: fix same note not resetting slide

reseting? resetting? UGH
This commit is contained in:
tildearrow 2024-07-03 15:08:37 -05:00
parent 394a2b5442
commit aca85f1c82

View file

@ -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) {