Don't round control list events when x-scaling them; prevents large loss of accuracy...
authorCarl Hetherington <carl@carlh.net>
Sat, 31 Dec 2011 13:25:29 +0000 (13:25 +0000)
committerCarl Hetherington <carl@carlh.net>
Sat, 31 Dec 2011 13:25:29 +0000 (13:25 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@11125 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/evoral/src/ControlList.cpp

index d3532eaefe26e3986c5da86ea5dd7a6636c48d8c..c31bd3421d4dc14a9ff8339779b474f328ea597e 100644 (file)
@@ -211,7 +211,7 @@ void
 ControlList::_x_scale (double factor)
 {
        for (iterator i = _events.begin(); i != _events.end(); ++i) {
-               (*i)->when = floor ((*i)->when * factor);
+               (*i)->when *= factor;
        }
 
        mark_dirty ();