OPLL: what why 2047

This commit is contained in:
tildearrow 2022-12-25 14:45:07 -05:00
parent 2923eb6265
commit 513ab09e7c
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ void DivPlatformOPLL::tick(bool sysTick) {
if (chan[i].freq<0) chan[i].freq=0;
if (chan[i].freq>65535) chan[i].freq=65535;
int freqt=toFreq(chan[i].freq);
if (freqt>2047) freqt=2047;
if (freqt>4095) freqt=4095;
chan[i].freqL=freqt&0xff;
if (i>=6 && properDrums && (i<9 || !noTopHatFreq)) {
immWrite(0x10+drumSlot[i],freqt&0xff);