Musical instrument digital interface, or MIDI, is used with electronic musical instruments which can be connected to computers. Rather than storing samples of sound, MIDI stores sound as a series of event messages, each of which represents an event in a piece of music. These can be thought of as a series of instructions which could be used to recreate a piece of music