mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 02:51:24 +00:00
SAA: fix negative octaves
This commit is contained in:
parent
9b83c304e5
commit
0ceec182a0
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ void DivPlatformSAA1099::tick() {
|
|||
}
|
||||
if (chan[i].freqChanged || chan[i].keyOn || chan[i].keyOff) {
|
||||
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,true);
|
||||
if (chan[i].freq>65535) chan[i].freq=65535;
|
||||
if (chan[i].freq>=32768) {
|
||||
chan[i].freqH=7;
|
||||
} else if (chan[i].freq>=16384) {
|
||||
|
|
Loading…
Reference in a new issue