Tuplets in MIDI import

This is a tuplet recognition functionality for MIDI import.

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

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

2 voices - triplet and regular notes:
https://docs.google.com/file/d/0B5alKuFoSol2TWRhOWxJSXp5dU0/edit?usp=sharing

Triplet and quintuplet with rest
+ 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
+ manually 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:
https://docs.google.com/file/d/0B5alKuFoSol2VWJ2X3JvZ1JBMDg/edit?usp=sharing


Also there was some changes in quantization and MIDI import tests.


--
trig-ger