Fix sample frequency range

This commit is contained in:
Natt Akuma 2023-03-01 13:56:28 +07:00
parent fd7200b3b3
commit 359d9c268c
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ void DivPlatformZXBeeperQT::tick(bool sysTick) {
off=(s->centerRate>=1)?(CHIP_DIVIDER*(double)s->centerRate/8363.0):CHIP_DIVIDER;
}
chan[4].freq=parent->calcFreq(chan[4].baseFreq,chan[4].pitch,chan[4].fixedArp?chan[4].baseNoteOverride:chan[4].arpOff,chan[4].fixedArp,true,2,chan[4].pitch2,chipClock,off);
if (chan[4].freq>259) chan[4].freq=259;
if (chan[4].freq>258) chan[4].freq=258;
if (chan[4].freq<3) chan[4].freq=3;
chan[4].freq*=13;
}