convert use of operator* for tim::line types with ::scale(ratio_t)

This commit is contained in:
Paul Davis 2022-05-27 12:46:58 -06:00
parent 48f4f9bf9c
commit c8feef51ab
6 changed files with 9 additions and 11 deletions

View file

@ -1245,7 +1245,7 @@ LuaAPI::Rubberband::finalize ()
ar->set_ancestral_data (timepos_t (_read_start), timecnt_t (_read_len), _stretch_ratio, _pitch_ratio);
ar->set_master_sources (_region->master_sources ());
ar->set_position (timepos_t (_region->position_sample ()));
ar->set_length (ar->length () * _stretch_ratio); // XXX
ar->set_length (ar->length ().scale (_stretch_ratio)); // XXX
if (_stretch_ratio != 1.0) {
// TODO: apply mapping
ar->envelope ()->x_scale (_stretch_ratio);