mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-13 10:06:33 +01:00
Revert "Create discrete lists for recorded MIDI controls."
This broke saving/restoring interpolation style.
This reverts commit 07a381a8f5.
This commit is contained in:
parent
b426873f6f
commit
ad340333f4
1 changed files with 1 additions and 12 deletions
|
|
@ -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",
|
DEBUG_TRACE (DEBUG::Sequence, string_compose ("%1 %2 @ %3 = %4 # controls: %5\n",
|
||||||
this, _type_map.to_symbol(param), time, value, _controls.size()));
|
this, _type_map.to_symbol(param), time, value, _controls.size()));
|
||||||
boost::shared_ptr<Control> c;
|
boost::shared_ptr<Control> c = control(param, true);
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
c->list()->add (time.to_double(), value);
|
c->list()->add (time.to_double(), value);
|
||||||
/* XXX control events should use IDs */
|
/* XXX control events should use IDs */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue