Tuplets in MIDI import

This is a tuplet recognition functionality for MIDI import.
Below are some examples of automatic MIDI import. Manual adjustments/highlights are made in a couple of cases to show that program correctly handles multiple voices.

Triplet:
https://docs.google.com/file/d/0B5alKuFoSol2clhNc3J0TXA2Q0U/edit?usp=sharing

Triplet when time sig = 3/4:
https://docs.google.com/file/d/0B5alKuFoSol2Yzh3X3oyanViZnM/edit?usp=sharing

Triplet when time sig = 5/4 (reply to http://musescore.org/node/4693 ): 
https://docs.google.com/file/d/0B5alKuFoSol2a3duTUlLSF9wUmM/edit?usp=sharing

Duplet (time sig = 6/8):
https://docs.google.com/file/d/0B5alKuFoSol2SW1vMTN6b3JNTmc/edit?usp=sharing

Qaudruplet (time sig = 6/8):
https://docs.google.com/file/d/0B5alKuFoSol2YUxyZUlkSmo5REU/edit?usp=sharing

Triplet and other shorter notes:
https://docs.google.com/file/d/0B5alKuFoSol2MXFaQm1HQUVVRjg/edit?usp=sharing

Mixed triplets, including triplet with rest:
https://docs.google.com/file/d/0B5alKuFoSol2MVJxbjFzNURSSjg/edit?usp=sharing

Septuplet:
https://docs.google.com/file/d/0B5alKuFoSol2R2tfeGZsMm9LZU0/edit?usp=sharing

Nonuplet (time sig = 3/4), requires 1/64 quantization:
https://docs.google.com/file/d/0B5alKuFoSol2VEpsOXR2T0Y2ZE0/edit?usp=sharing

Nonuplet (time sig = 4/4), requires 1/64 quantization:
https://docs.google.com/file/d/0B5alKuFoSol2TW5xNHZXZm5PN0k/edit?usp=sharing

2 voices - triplet and regular notes:
https://docs.google.com/file/d/0B5alKuFoSol2TWRhOWxJSXp5dU0/edit?usp=sharing

Triplet and quintuplet with rest
and manually space-adjusted case:
https://docs.google.com/file/d/0B5alKuFoSol2cGNPQTMyeTA1LTQ/edit?usp=sharing
https://docs.google.com/file/d/0B5alKuFoSol2d2tJR1FYNDFCV1E/edit?usp=sharing

2 voices - triplet and quintuplet.
Need to manually set quantization value to 1/32:
https://docs.google.com/file/d/0B5alKuFoSol2Ml8yME5mMElDbk0/edit?usp=sharing

3 voices - triplet, quintuplet and septuplet simultaneously
and manually space-adjusted case + highlighted case:
https://docs.google.com/file/d/0B5alKuFoSol2VG9UcnJfX1Q0MmM/edit?usp=sharing
https://docs.google.com/file/d/0B5alKuFoSol2UzFmMXFxUjIyOG8/edit?usp=sharing
https://docs.google.com/file/d/0B5alKuFoSol2QWVidjJ2ck9SZkU/edit?usp=sharing

Larget piece example (reply to http://musescore.org/en/node/17592 ):
https://docs.google.com/file/d/0B5alKuFoSol2VWJ2X3JvZ1JBMDg/edit?usp=sharing


New option in UI: ability of track reordering. For example, left piano track goes above right track that is incorrect, so we can move right track to the top.
- Before reordering:
https://docs.google.com/file/d/0B5alKuFoSol2UzBIcmptdlFtazQ/edit?usp=sharing
- After reordering:
https://docs.google.com/file/d/0B5alKuFoSol2MXZRQm1nU3gwNzg/edit?usp=sharing


Added pickup measure support:
https://docs.google.com/file/d/0B5alKuFoSol2cldIdHdiYTV6djQ/edit?usp=sharing


Also there were some changes in quantization and MIDI import tests.


--
trig-ger