Don't add initial points for MIDI-CC
authorRobin Gareus <robin@gareus.org>
Sun, 23 Oct 2016 12:20:48 +0000 (14:20 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 23 Oct 2016 12:21:24 +0000 (14:21 +0200)
eg. import a .mid that has a CC later in the file.
Arodur wrongly added an initial point, effectively moving the event
backwards to "0" (no virgin territory)

libs/evoral/src/Sequence.cpp

index c578a9ebec537dceeb7b407911d0a71d34bd9e64..283ea009a3edaa8892c6665c2c4774aa61379807 100644 (file)
@@ -1047,7 +1047,7 @@ Sequence<Time>::append_control_unlocked(const Parameter& param, Time time, doubl
        DEBUG_TRACE (DEBUG::Sequence, string_compose ("%1 %2 @ %3 = %4 # controls: %5\n",
                                                      this, _type_map.to_symbol(param), time, value, _controls.size()));
        boost::shared_ptr<Control> c = control(param, true);
-       c->list()->add (time.to_double(), value);
+       c->list()->add (time.to_double(), value, true, false);
        /* XXX control events should use IDs */
 }