13
0

fix expression ordering when multiplying region length by ratio_t

This commit is contained in:
Paul Davis 2020-12-27 17:46:06 -07:00
parent 683512f5a9
commit 3197d24f38

View File

@ -148,8 +148,8 @@ RBEffect::run (boost::shared_ptr<Region> r, Progress* progress)
* I hope this is clear. * I hope this is clear.
*/ */
double stretch = tsr.time_fraction * region->stretch (); double stretch = region->stretch() * tsr.time_fraction;
double shift = tsr.pitch_fraction * region->shift (); double shift = region->shift() * tsr.pitch_fraction;
samplecnt_t read_start = region->ancestral_start_sample () + samplecnt_t read_start = region->ancestral_start_sample () +
samplecnt_t (region->start_sample () / (double)region->stretch ()); samplecnt_t (region->start_sample () / (double)region->stretch ());