sample preview now defaults to C-4 rate

This commit is contained in:
tildearrow 2022-11-29 00:17:38 -05:00
parent a09ccb9b30
commit b41a015c4b
1 changed files with 2 additions and 2 deletions

View File

@ -2476,10 +2476,10 @@ void DivEngine::previewSampleNoLock(int sample, int note, int pStart, int pEnd)
return;
}
blip_clear(samp_bb);
double rate=song.sample[sample]->rate;
double rate=song.sample[sample]->centerRate;
if (note>=0) {
rate=(pow(2.0,(double)(note)/12.0)*((double)song.sample[sample]->centerRate)*0.0625);
if (rate<=0) rate=song.sample[sample]->rate;
if (rate<=0) rate=song.sample[sample]->centerRate;
}
if (rate<100) rate=100;
blip_set_rates(samp_bb,rate,got.rate);