NES: fix high pitch being out of tune
This commit is contained in:
parent
7d9749d0ef
commit
eafc3078cf
2 changed files with 4 additions and 4 deletions
|
|
@ -198,9 +198,9 @@ void DivPlatformNES::tick() {
|
|||
int ntPos=chan[i].baseFreq;
|
||||
if (ntPos<0) ntPos=0;
|
||||
if (ntPos>252) ntPos=252;
|
||||
chan[i].freq=(parent->song.properNoiseLayout)?(15-(chan[i].baseFreq&15)):(noiseTable[ntPos]);
|
||||
chan[i].freq=(parent->song.properNoiseLayout)?(15-(chan[i].baseFreq&15)):(noiseTable[ntPos])-1;
|
||||
} else {
|
||||
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,true);
|
||||
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,true)-1;
|
||||
if (chan[i].freq>2047) chan[i].freq=2047;
|
||||
}
|
||||
if (chan[i].keyOn) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue