Added classes and methods for MIDI output