Move overlapping notes check function
This commit is contained in:
parent
8e48cbdbc4
commit
8ca70674ac
1 changed files with 3 additions and 4 deletions
|
@ -162,10 +162,6 @@ void quantizeAllTracks(std::multimap<int, MTrack> &tracks,
|
|||
"There are overlapping notes of the same voice that is incorrect");
|
||||
|
||||
Quantize::quantizeChords(mtrack.chords, mtrack.tuplets, sigmap);
|
||||
|
||||
Q_ASSERT_X(!doNotesOverlap(track.second),
|
||||
"quantizeAllTracks",
|
||||
"There are overlapping notes of the same voice that is incorrect");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -933,6 +929,9 @@ void convertMidi(Score *score, const MidiFile *mf)
|
|||
|
||||
quantizeAllTracks(tracks, sigmap, lastTick);
|
||||
|
||||
Q_ASSERT_X(!doNotesOverlap(tracks),
|
||||
"convertMidi", "There are overlapping notes of the same voice that is incorrect");
|
||||
|
||||
Q_ASSERT_X(noTooShortNotes(tracks),
|
||||
"convertMidi", "There are notes of length < min allowed duration");
|
||||
|
||||
|
|
Loading…
Reference in a new issue