mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
POKEY: E5xx fix?
This commit is contained in:
parent
831598b1aa
commit
aaebdf3e5e
1 changed files with 6 additions and 1 deletions
|
@ -156,7 +156,7 @@ void DivPlatformPOKEY::tick(bool sysTick) {
|
||||||
|
|
||||||
for (int i=0; i<4; i++) {
|
for (int i=0; i<4; i++) {
|
||||||
if (chan[i].freqChanged || chan[i].keyOn || chan[i].keyOff) {
|
if (chan[i].freqChanged || chan[i].keyOn || chan[i].keyOff) {
|
||||||
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,chan[i].fixedArp?chan[i].baseNoteOverride:chan[i].arpOff,chan[i].fixedArp,true,0,chan[i].pitch2,chipClock,CHIP_DIVIDER);
|
chan[i].freq=parent->calcFreq(chan[i].baseFreq,parent->song.linearPitch?chan[i].pitch:0,chan[i].fixedArp?chan[i].baseNoteOverride:chan[i].arpOff,chan[i].fixedArp,true,0,parent->song.linearPitch?chan[i].pitch2:0,chipClock,CHIP_DIVIDER);
|
||||||
|
|
||||||
if ((i==0 && !(audctl&64)) || (i==2 && !(audctl&32)) || i==1 || i==3) {
|
if ((i==0 && !(audctl&64)) || (i==2 && !(audctl&32)) || i==1 || i==3) {
|
||||||
chan[i].freq/=7;
|
chan[i].freq/=7;
|
||||||
|
@ -194,6 +194,11 @@ void DivPlatformPOKEY::tick(bool sysTick) {
|
||||||
chan[i].freq>>=2;
|
chan[i].freq>>=2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// non-linear pitch
|
||||||
|
if (parent->song.linearPitch==0) {
|
||||||
|
chan[i].freq-=chan[i].pitch;
|
||||||
|
}
|
||||||
|
|
||||||
if (--chan[i].freq<0) chan[i].freq=0;
|
if (--chan[i].freq<0) chan[i].freq=0;
|
||||||
|
|
||||||
// snap buzz periods
|
// snap buzz periods
|
||||||
|
|
Loading…
Reference in a new issue