diff options
author | Robin Gareus <robin@gareus.org> | 2015-09-15 17:49:26 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-09-15 17:50:27 +0200 |
commit | fc74894def5f9477ff00434c4cf4223c3fe04782 (patch) | |
tree | 16f8126f7a8e09326f02ee6d3e9296722d93f86c /libs/evoral | |
parent | 93cd0d17e4350958308dd1258d7e3aa0e5417292 (diff) |
another note-off fix.
For nearly coincident note-on the sequence does not matter,
but note-off must be sent before a new note-on in strict
order (could be the same note).
Diffstat (limited to 'libs/evoral')
-rw-r--r-- | libs/evoral/src/Sequence.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/evoral/src/Sequence.cpp b/libs/evoral/src/Sequence.cpp index c8a0dd4f23..e153cea9b4 100644 --- a/libs/evoral/src/Sequence.cpp +++ b/libs/evoral/src/Sequence.cpp @@ -244,7 +244,7 @@ Sequence<Time>::const_iterator::choose_next(Time earliest_t) // Use the next note off iff it's earlier or the same time as the note on if ((!_active_notes.empty())) { - if (_type == NIL || _active_notes.top()->end_time() <= earliest_t) { + if (_type == NIL || _active_notes.top()->end_time().to_double() <= earliest_t.to_double()) { _type = NOTE_OFF; earliest_t = _active_notes.top()->end_time(); } |