Make local variable constant
Set measure numbers during MIDI import
Adapt importmidi tests: set measure numbers
Add Q_ASSERT_X: do clefs break ties
Move tie functions to a separate file; add Q_ASSERT check for ties consistency
Use bool instead of int for clef-across-tie check
Fix Q_ASSERT function to check ties consistency