Circuit for MIDI interface