code cleanup

This commit is contained in:
MooingLemur 2023-12-05 22:34:46 -07:00 committed by tildearrow
parent b83cc98eb1
commit 69363b4db9

View file

@ -226,15 +226,11 @@ void DivPlatformVERA::tick(bool sysTick) {
double off=65536.0;
if (chan[16].pcm.sample>=0 && chan[16].pcm.sample<parent->song.sampleLen) {
DivSample* s=parent->getSample(chan[16].pcm.sample);
if (s->centerRate<1) {
off=65536.0;
} else {
if (s->centerRate>=1) {
off=65536.0*(s->centerRate/8363.0);
lastCenterRate=s->centerRate;
}
} else if (lastCenterRate<1) {
off=65536.0;
} else {
} else if (lastCenterRate>=1) {
off=65536.0*(lastCenterRate/8363.0);
}
chan[16].freq=parent->calcFreq(chan[16].baseFreq,chan[16].pitch,chan[16].fixedArp?chan[16].baseNoteOverride:chan[16].arpOff,chan[16].fixedArp,false,8,chan[16].pitch2,chipClock,off);