prepare for proper center rate
the correct rate is 8372Hz rather than 8363Hz sadly this will require a compat flag so I am not making this change effective until 0.7 issue #2347
This commit is contained in:
parent
b95f9885a4
commit
9dee51851f
39 changed files with 57 additions and 46 deletions
|
|
@ -154,7 +154,7 @@ void DivPlatformZXBeeperQuadTone::tick(bool sysTick) {
|
|||
double off=CHIP_DIVIDER;
|
||||
if (curSample>=0 && curSample<parent->song.sampleLen) {
|
||||
DivSample* s=parent->getSample(curSample);
|
||||
off=(s->centerRate>=1)?(CHIP_DIVIDER*(double)s->centerRate/8363.0):CHIP_DIVIDER;
|
||||
off=(s->centerRate>=1)?(CHIP_DIVIDER*(double)s->centerRate/parent->getCenterRate()):CHIP_DIVIDER;
|
||||
}
|
||||
chan[4].freq=parent->calcFreq(chan[4].baseFreq,chan[4].pitch,chan[4].fixedArp?chan[4].baseNoteOverride:chan[4].arpOff,chan[4].fixedArp,true,2,chan[4].pitch2,chipClock,off);
|
||||
if (chan[4].freq>258) chan[4].freq=258;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue