added MIDI functionality