do not thin() automation event list on load.
authorRobin Gareus <robin@gareus.org>
Sat, 31 May 2014 15:13:47 +0000 (17:13 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 31 May 2014 15:13:47 +0000 (17:13 +0200)
only thin() when writing automation. This fixes issues with
loading short x-fades (which can be stretched later).

TODO: thinning should not just drop, but interpolate and use
more elaborate logic, compared to A2/MB2 Curve::merge_nascent()

libs/ardour/automation_list.cc

index 83df92488b02087b3adf6357992ffe57da0224de..32e69af7aeed9466ce606976004757415d091d90 100644 (file)
@@ -346,8 +346,6 @@ AutomationList::deserialize_events (const XMLNode& node)
                fast_simple_add (x, y);
        }
 
-       thin ();
-
        if (!ok) {
                clear ();
                error << _("automation list: cannot load coordinates from XML, all points ignored") << endmsg;
@@ -410,9 +408,7 @@ AutomationList::set_state (const XMLNode& node, int version)
                        fast_simple_add (x, y);
                }
 
-               thin ();
-
-                thaw ();
+               thaw ();
 
                return 0;
        }