Set new region length correctly after stretch (part of
#3908). git-svn-id: svn://localhost/ardour2/branches/3.0@9963 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5905b58bc0
commit
2b2d49fffa
@ -355,7 +355,10 @@ RBEffect::run (boost::shared_ptr<Region> r, Progress*)
|
|||||||
stretch,
|
stretch,
|
||||||
shift);
|
shift);
|
||||||
(*x)->set_master_sources (region->master_sources());
|
(*x)->set_master_sources (region->master_sources());
|
||||||
(*x)->set_length( (*x)->length() * stretch);
|
/* multiply the old (possibly previously stretched) region length by the extra
|
||||||
|
stretch this time around to get its new length
|
||||||
|
*/
|
||||||
|
(*x)->set_length ((*x)->length() * tsr.time_fraction);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* stretch region gain envelope */
|
/* stretch region gain envelope */
|
||||||
|
Loading…
Reference in New Issue
Block a user