mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
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:
parent
073a94350b
commit
ca12fe9733
2 changed files with 4 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue