MidiMusic pattern in progress and some framework changes