13
0

Don't add initial points for MIDI-CC

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)
This commit is contained in:
Robin Gareus 2016-10-23 14:20:48 +02:00
parent 6866359c48
commit 7c8ab05c09

View 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 */
}