mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-26 22:43:01 +00:00
one more fix!
This commit is contained in:
parent
6599eb4f7e
commit
796f9b0cf5
1 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,7 @@ void DivPlatformNES::tick() {
|
|||
if (chan[i].std.hadArp) {
|
||||
if (i==3) { // noise
|
||||
if (chan[i].std.arpMode) {
|
||||
chan[i].baseFreq=chan[i].std.arp+24;
|
||||
chan[i].baseFreq=chan[i].std.arp;
|
||||
} else {
|
||||
chan[i].baseFreq=chan[i].note+chan[i].std.arp-12;
|
||||
}
|
||||
|
@ -102,6 +102,7 @@ void DivPlatformNES::tick() {
|
|||
}
|
||||
if (chan[i].std.hadDuty) {
|
||||
chan[i].duty=chan[i].std.duty;
|
||||
if (i==3 && chan[i].duty>1) chan[i].duty=1;
|
||||
DivInstrument* ins=parent->getIns(chan[i].ins);
|
||||
if (i!=2) {
|
||||
apu_wr_reg(0x4000+i*4,0x30|chan[i].outVol|((chan[i].duty&3)<<6));
|
||||
|
|
Loading…
Reference in a new issue