mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-22 12:35:11 +00:00
OPL4: Fix highest note frequency
This commit is contained in:
parent
19a59b64e1
commit
7594b2fb55
1 changed files with 1 additions and 1 deletions
|
@ -1346,7 +1346,7 @@ void DivPlatformOPL::tick(bool sysTick) {
|
|||
double off=(s->centerRate>=1)?((double)s->centerRate/8363.0):1.0;
|
||||
chan[i].freq=(int)(off*parent->calcFreq(chan[i].baseFreq,chan[i].pitch,chan[i].fixedArp?chan[i].baseNoteOverride:chan[i].arpOff,chan[i].fixedArp,false,2,chan[i].pitch2,chipClock,(524288*768)));
|
||||
if (chan[i].freq<0x400) chan[i].freq=0x400;
|
||||
if (chan[i].freq>0x4000000) chan[i].freq=0x4000000;
|
||||
if (chan[i].freq>0x3ffffff) chan[i].freq=0x3ffffff;
|
||||
if (chan[i].freq>=0x2000000) {
|
||||
chan[i].freqH=15;
|
||||
} else if (chan[i].freq>=0x1000000) {
|
||||
|
|
Loading…
Reference in a new issue