Fixes to MidiMusic