Added draft of a MIDI file read function

This function will be used by the auto mode, parts are still TBIL