Separate midi file header decoder and track extraction.