don't distort xfades when changing their length substantially
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 15 May 2012 12:15:14 +0000 (12:15 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 15 May 2012 12:15:14 +0000 (12:15 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12287 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/automation_event.cc

index 065a6b909b87ca8ac61bde4e234c6c2bb442b689..ed23ad70f3bae80402b93be45c871d673823d58f 100644 (file)
@@ -309,7 +309,7 @@ AutomationList::extend_to (double when)
 void AutomationList::_x_scale (double factor)
 {
        for (AutomationList::iterator i = events.begin(); i != events.end(); ++i) {
-               (*i)->when = floor ((*i)->when * factor);
+               (*i)->when *= factor;
        }
 
        mark_dirty ();