13
0

Fix overlapping resolution (see issue #177)

It assumes that a note ending at the same time of another one starting
is not considered overlapping.
This commit is contained in:
Nil Geisweiller 2015-12-05 10:14:26 +02:00 committed by Robin Gareus
parent 3a6f62d238
commit 742d176479

View File

@ -1665,9 +1665,9 @@ MidiModel::resolve_overlaps_unlocked (const NotePtr note, void* arg)
if ((sb > sa) && (eb <= ea)) {
overlap = OverlapInternal;
} else if ((eb >= sa) && (eb <= ea)) {
} else if ((eb > sa) && (eb <= ea)) {
overlap = OverlapStart;
} else if ((sb > sa) && (sb <= ea)) {
} else if ((sb > sa) && (sb < ea)) {
overlap = OverlapEnd;
} else if ((sa >= sb) && (sa <= eb) && (ea <= eb)) {
overlap = OverlapExternal;