parent
d9c6842ea3
commit
f6e471f48d
|
@ -140,8 +140,6 @@ Filter::finish (boost::shared_ptr<Region> region, SourceList& nsrcs, string regi
|
|||
plist.add (Properties::whole_file, true);
|
||||
|
||||
boost::shared_ptr<Region> r = RegionFactory::create (nsrcs, plist);
|
||||
r->set_start (timepos_t(0));
|
||||
r->set_whole_file (true);
|
||||
results.push_back (r);
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -1236,13 +1236,12 @@ LuaAPI::Rubberband::finalize ()
|
|||
|
||||
ar->set_ancestral_data (timepos_t (_read_start), timecnt_t (_read_len, timepos_t (_read_start)), _stretch_ratio, _pitch_ratio);
|
||||
ar->set_master_sources (_region->master_sources ());
|
||||
ar->set_start (timepos_t(0));
|
||||
#if 0 // TODO construct ratio_t from double
|
||||
ar->set_length (ar->length ().scale (_stretch_ratio));
|
||||
ar->set_length_unchecked (ar->length ().scale (_stretch_ratio));
|
||||
#else
|
||||
ar->set_length (timecnt_t (_stretch_ratio * ar->length_samples (), ar->position()));
|
||||
ar->set_length_unchecked (timecnt_t (_stretch_ratio * ar->length_samples (), ar->position()));
|
||||
#endif
|
||||
ar->set_whole_file (true);
|
||||
ar->set_whole_file (true); // set_length() unsets whole_file
|
||||
if (_stretch_ratio != 1.0) {
|
||||
// TODO: apply mapping
|
||||
ar->envelope ()->x_scale (_stretch_ratio);
|
||||
|
|
Loading…
Reference in New Issue
Block a user