MIDI means Musical Instrumental Digital Interface
It is actually a collection of appointments, how a musical instrument can communicate with a computer or other musical instrument. It is a kind of electronic notation. How the sound eventually sounds depends on the synthesizer used. Many MIDI files can be found on the Internet. Because MIDI files consist of commands, they are also relatively easy to edit.
Understanding MIDI/understanding Samplers and Sampling