We had a discussion a few months back about Type 2 files, with some files I have marked as Type 2 in the header, but we had difficulty determining if anything actually used any Type 2 features. The files are attached to that thread.
Oh, you needed a MIDI file of type 2, not a MIDI 2.0 file...
Attaching one made with the tool mentioned above...
I was expecting something like a Meta-Event Sequence Number per track
they look like normal files with the only difference that they are the first I've seen with system-exclusive events, some have many of these events [F0 7D 01 00 01 00 01 04 03 10 00 F7] [F0 7D 03 63 6C 65 61 72 20 63 61 6C 6C 62 61 63 6B 00 F7]
I used the DECODE program on the file, which displays the contents as plain text. The vast bulk of the file is a normal music midi file, but attached on the end you will see two small sections, each of which has the delta time reset to 000. In one case, there's a note that is turned ON before the 'break', and turned OFF in the new section.
I've interpreted Type 2 MIDI files as being a way to store a collection of Type 0 MIDI files in a single file. I also imagined the Sequence Number and/or Sequence/Track Name meta events could be used at the beginning of each track in a Type 2 MIDI file to help identify each track as part of some overall collection. For example, I have imagined that a drum machine might export all of its drum patterns to a single Type 2 MIDI file, with each track representing one pattern, beginning with a Sequence Number meta event to store the pattern number. However, I have no idea if anything like this was ever actually done.
The data in the separate sections are held in the main file as separate tracks. There isn't any explicit reset to 000. But the fact that it's a type 2 file means that the data is not merged to a single time frame (as would happen with a type 1 file) but the sections remain sequential.
Yes, this empire.mid is exactly the same as the one from the previous thread Jason mentioned.I found the file I was thinking of. May well have come from Jonas, you may already have got it. I think the file originates from a StarWars game of some type. [...] I attach a .zip file. This contains the original empire.mid [...]
Note that the only places the tick position gets reset to zero is when a new track starts, so that is perfectly normal.you will see two small sections, each of which has the delta time reset to 000. In one case, there's a note that is turned ON before the 'break', and turned OFF in the new section.
In a Type 2 MIDI file, the tracks are not intended to be played at the same time -- each track is a separate piece of music.doesn't it play all 3 tracks at once?
In a Type 2 MIDI file, the tracks are not intended to be played at the same time -- each track is a separate piece of music.
The MIDI Technical Fanatic's Brainwashing Center (midi.teragonaudio.com) contains pretty good descriptions of MIDI specifications, but be aware that it is not official and sometimes gets some details wrong. It's always a good idea to look at the official specifications in the midi.org Specs section first, then read other sites for comparison.
I like to imagine a Type 2 MIDI file is sort of like a zip file that contains several Type 0 MIDI files. You would have to let the user choose which track to play. They might only want to play one track. They might want to play all the tracks in order one after another.How do you know which sequence to play?
That page is about MIDI Show Control messages. MIDI Show Control messages are for controlling devices for a light show, smoke effects, or fireworks at a concert.Does it have anything to do with this?
I like to imagine a Type 2 MIDI file is sort of like a zip file that contains several Type 0 MIDI files. You would have to let the user choose which track to play. They might only want to play one track. They might want to play all the tracks in order one after another.