mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
convert use of operator* for tim::line types with ::scale(ratio_t)
This commit is contained in:
parent
48f4f9bf9c
commit
c8feef51ab
6 changed files with 9 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue