sample preview now defaults to C-4 rate
This commit is contained in:
parent
a09ccb9b30
commit
b41a015c4b
|
@ -2476,10 +2476,10 @@ void DivEngine::previewSampleNoLock(int sample, int note, int pStart, int pEnd)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
blip_clear(samp_bb);
|
blip_clear(samp_bb);
|
||||||
double rate=song.sample[sample]->rate;
|
double rate=song.sample[sample]->centerRate;
|
||||||
if (note>=0) {
|
if (note>=0) {
|
||||||
rate=(pow(2.0,(double)(note)/12.0)*((double)song.sample[sample]->centerRate)*0.0625);
|
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;
|
if (rate<100) rate=100;
|
||||||
blip_set_rates(samp_bb,rate,got.rate);
|
blip_set_rates(samp_bb,rate,got.rate);
|
||||||
|
|
Loading…
Reference in New Issue