Midi has nothing to do with audio.
Midi is an control protocol which sends command-data to synths or receives it back from synths.
Midi is a 5-pin connection and transport serial communications from computer to midi devices like synthesizers, drumcomputers etc etc.