diff options
author | David Robillard <d@drobilla.net> | 2014-12-05 00:03:47 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-05 00:03:47 -0500 |
commit | ad340333f4352d3f2bb79dc7a311f38008fe120d (patch) | |
tree | 7c631e70b16cdbbad6858b1dd946e52d366c9faa /libs/evoral | |
parent | b426873f6fd05ad546e49317cc6dc7ee59df60fa (diff) |
Revert "Create discrete lists for recorded MIDI controls."
This broke saving/restoring interpolation style.
This reverts commit 07a381a8f5572ae7550c60e5b1bd18c3dcdc7369.
Diffstat (limited to 'libs/evoral')
-rw-r--r-- | libs/evoral/src/Sequence.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libs/evoral/src/Sequence.cpp b/libs/evoral/src/Sequence.cpp index 2854c8281a..dd891a0ac2 100644 --- a/libs/evoral/src/Sequence.cpp +++ b/libs/evoral/src/Sequence.cpp @@ -1080,18 +1080,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; - Controls::iterator i = _controls.find(param); - if (i != _controls.end()) { - c = i->second; - } else { - /* Create a new control list with discrete interpolation by default, to - play back recorded data exactly. */ - c = control_factory(param); - c->list()->set_interpolation(ControlList::Discrete); - add_control(c); - } - + boost::shared_ptr<Control> c = control(param, true); c->list()->add (time.to_double(), value); /* XXX control events should use IDs */ } |