Minor changes to the MIDI importer.
Simplifying code.