Fix CC interpolation (i.e. output a maximum reslution stream of CC for a line segment).
git-svn-id: svn://localhost/ardour2/branches/3.0@3781 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -356,8 +356,8 @@ void
|
||||
AutomationTimeAxisView::set_interpolation (AutomationList::InterpolationStyle style)
|
||||
{
|
||||
_control->list()->set_interpolation(style);
|
||||
if (_line)
|
||||
_line->set_interpolation(style);
|
||||
if (_line)
|
||||
_line->set_interpolation(style);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -58,9 +58,8 @@ struct null_ostream : public std::ostream {
|
||||
static null_ostream nullout;
|
||||
|
||||
//static ostream& debugout = cout;
|
||||
//static ostream& errorout = cerr;
|
||||
static ostream& debugout = nullout;
|
||||
static ostream& errorout = nullout;
|
||||
static ostream& errorout = cerr;
|
||||
|
||||
// Read iterator (const_iterator)
|
||||
|
||||
@@ -206,7 +205,6 @@ Sequence::const_iterator& Sequence::const_iterator::operator++()
|
||||
}
|
||||
}
|
||||
|
||||
const std::vector<ControlIterator>::iterator old_control_iter = _control_iter;
|
||||
_control_iter = _control_iters.begin();
|
||||
|
||||
// find the _control_iter with the earliest event time
|
||||
@@ -237,8 +235,7 @@ Sequence::const_iterator& Sequence::const_iterator::operator++()
|
||||
}
|
||||
|
||||
// Use the next earliest controller iff it's earlier than the note event
|
||||
if (_control_iter != _control_iters.end() && _control_iter->x != DBL_MAX
|
||||
&& _control_iter != old_control_iter) {
|
||||
if (_control_iter != _control_iters.end() && _control_iter->x != DBL_MAX) {
|
||||
if (type == NIL || _control_iter->x < t) {
|
||||
type = CONTROL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user