A MIDI sound file that contains MIDI messages. MIDI files have a .MID extension. A variation of this format is the RIFF MIDI file, which uses the .RMI extension.
The format of a Standard MIDI File (SMF) contains a header "chunk" at the beginning that defines the type, followed by one or more track chunks. Type 0 files store all tracks in one track chunk. Type 1 files use a separate chunk for each track, with the first chunk storing the tempo.
Type 0 files use less memory and run faster than type 1. Thus, original MIDI music is maintained in type 1 format and frequently distributed in type 0. MIDI files distributed for editing are usually in type 1, because it is difficult to convert from type 0 to 1 using a MIDI sequencer. A less-widely used type 2 can contain several type 0 files. See MIDI