Fix indentation
Fix bug in the QMakefile.
Update QMidi.
Simplify code.
Simplify code and add into setupTracks().