Add basic MIDI output code