Added some MIDI functions