GUI: sample editor changes
This commit is contained in:
parent
3e997ae886
commit
5e4bfe2f11
5 changed files with 69 additions and 9 deletions
|
|
@ -2125,7 +2125,7 @@ void DivEngine::previewSample(int sample, int note, int pStart, int pEnd) {
|
|||
blip_clear(samp_bb);
|
||||
double rate=song.sample[sample]->rate;
|
||||
if (note>=0) {
|
||||
rate=(song.tuning*pow(2.0,(double)(note+3)/12.0)*((double)song.sample[sample]->centerRate/8363.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<100) rate=100;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue