out of bounds
This commit is contained in:
parent
09371f9205
commit
fedb8cdd94
|
@ -114,6 +114,7 @@ void DivPlatformGB::tick() {
|
||||||
chan[i].freq=noiseTable[chan[i].baseFreq];
|
chan[i].freq=noiseTable[chan[i].baseFreq];
|
||||||
} else {
|
} else {
|
||||||
chan[i].freq=(chan[i].baseFreq*(ONE_SEMITONE-chan[i].pitch))/ONE_SEMITONE;
|
chan[i].freq=(chan[i].baseFreq*(ONE_SEMITONE-chan[i].pitch))/ONE_SEMITONE;
|
||||||
|
if (chan[i].freq>2047) chan[i].freq=2047;
|
||||||
}
|
}
|
||||||
if (chan[i].note>0x5d) chan[i].freq=0x01;
|
if (chan[i].note>0x5d) chan[i].freq=0x01;
|
||||||
if (chan[i].keyOn) {
|
if (chan[i].keyOn) {
|
||||||
|
|
Loading…
Reference in a new issue