mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-29 07:53:01 +00:00
Fix frequency effect
This commit is contained in:
parent
153ceea3bd
commit
c3c50e3ccf
1 changed files with 2 additions and 0 deletions
|
@ -163,6 +163,8 @@ void DivPlatformNDS::tick(bool sysTick) {
|
||||||
chan[i].freq=0x10000-(off*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=0x10000-(off*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));
|
||||||
if (chan[i].freq<0) chan[i].freq=0;
|
if (chan[i].freq<0) chan[i].freq=0;
|
||||||
if (chan[i].freq>65535) chan[i].freq=65535;
|
if (chan[i].freq>65535) chan[i].freq=65535;
|
||||||
|
if ((!chan[i].keyOn) && ((rRead8(0x03+i*16)&0x80)==0))
|
||||||
|
chan[i].active=false;
|
||||||
ctrl|=(chan[i].active?0x80:0)|((s->isLoopable())?0x08:0x10);
|
ctrl|=(chan[i].active?0x80:0)|((s->isLoopable())?0x08:0x10);
|
||||||
if (chan[i].keyOn) {
|
if (chan[i].keyOn) {
|
||||||
unsigned int start=0;
|
unsigned int start=0;
|
||||||
|
|
Loading…
Reference in a new issue