Some work on the MIDI importer.