Move overlapping notes check function

This commit is contained in:
Andrey M. Tokarev 2014-04-02 10:16:51 +04:00
parent 8e48cbdbc4
commit 8ca70674ac

View file

@ -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");