summaryrefslogtreecommitdiff
path: root/libs/evoral
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-10-23 14:20:48 +0200
committerRobin Gareus <robin@gareus.org>2016-10-23 14:21:24 +0200
commit7c8ab05c090e25465d9cb696266042f9e00ab24e (patch)
tree962fe562311e82400c9a341d25c024761f8b93d7 /libs/evoral
parent6866359c4800a3443f218c8c3fcff08f83fea9da (diff)
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)
Diffstat (limited to 'libs/evoral')
-rw-r--r--libs/evoral/src/Sequence.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/evoral/src/Sequence.cpp b/libs/evoral/src/Sequence.cpp
index c578a9ebec..283ea009a3 100644
--- a/libs/evoral/src/Sequence.cpp
+++ b/libs/evoral/src/Sequence.cpp
@@ -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 */
}