diff options
Diffstat (limited to 'libs/ardour/rb_effect.cc')
-rw-r--r-- | libs/ardour/rb_effect.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/rb_effect.cc b/libs/ardour/rb_effect.cc index bc040709f4..e90149926c 100644 --- a/libs/ardour/rb_effect.cc +++ b/libs/ardour/rb_effect.cc @@ -355,7 +355,10 @@ RBEffect::run (boost::shared_ptr<Region> r, Progress*) stretch, shift); (*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 */ |