fbpx
Skip to main content

MIDI Forum

MIDI file request
 
Notifications
Clear all

MIDI file request

68 Posts
8 Users
0 Reactions
16.6 K Views
Carlos
Posts: 86
Estimable Member
Topic starter
 

Hello, could someone lend me some "rare" MIDI files, for example midi 2 format or with SMPTE delta times, I can't find any and also the largest "common" midi file.
The largest midi file I have weighs 84.3Kb and my program takes 0.0137 seconds to read and analyze it, I would like to try something bigger
Thank you. 🙂

 
Posted : 13/05/2022 3:56 pm
Sema
 Sema
Posts: 182
Reputable Member
 

I don't think anybody have MIDI-2 files.
The one with SMPTE you can find at https://github.com/jazz-soft/test-midi-files
and that will also allow you create your own test files with any content you can imagine.

 
Posted : 13/05/2022 6:09 pm
JohnG
Posts: 227
 

As Sema intimates you'll be lucky to find any MIDI 2 format files.
Why not?
The MMA standard for authoring MIDI 2 files hasn't been agreed or published yet.
Q.E.D. they don't exist ... yet!

I'm fairly sure you'll find some large files in the MIDI section of the Classicalarchives.com web site.
Just look for a suitable large, popular orchestral score, e.g. Rossini's overture to William Tell will give you 145k.

JohnG.

 
Posted : 14/05/2022 2:23 am
Carlos
Posts: 86
Estimable Member
Topic starter
 

Thanks, I thought that already existed, since they talk about it in a file from 1996. 😀

 
Posted : 14/05/2022 5:02 am
Eddie Lotter
Posts: 295
Reputable Member
 

They are referring to what the Standard MIDI Files Specification calls a "format."
There are three formats of MIDI 1.0 files, numbered 0, 1 and 2.

 
Posted : 14/05/2022 5:44 am
Mike Kent
Posts: 86
Trusted Member
 

Standard MIDI File specification (version 1) defines Type 0, Type 1, and Type 2. The Type 0 and Type 1 formats have been well used and supported by many products, but Type 2 format is extremely rare. Recently in the Standard MIDI File Working Group of the MIDI Association, members all agreed that they have never seen a Type 2 file.

The Standard MIDI File Working Group is currently working on a Version 2 specification to define support for the MIDI 2.0 Universal MIDI Packet data format.

Mike Kent
Chair of MIDI 2.0 Working Group

Chair of MIDI 2.0 Working Group

 
Posted : 14/05/2022 8:36 am
Jason
Posts: 441
Honorable Member
 

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.

https://midi.org/forum/11926-ways-to-determine-is-a-midi-is-type-0-or-1

 
Posted : 14/05/2022 11:42 am
Carlos
Posts: 86
Estimable Member
Topic starter
 

[quotePost id=14575]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.

https://midi.org/forum/11926-ways-to-determine-is-a-midi-is-type-0-or-1 [/quotePost]

Thanks, download the files I'm going to see how they work, not even Musescore can read them, 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
0xF0 0x7D 0x01 0x00 0x01 0x00 0x01 0x04 0x03 0x10 0x00 0xF7
0xF0 0x7D 0x03 0x63 0x6C 0x65 0x61 0x72 0x20 0x63 0x61 0x6C 0x6C 0x62 0x61 0x63 0x6B 0x00 0xF7

 
Posted : 14/05/2022 2:56 pm
Sema
 Sema
Posts: 182
Reputable Member
 

Oh, you needed a MIDI file of type 2, not a MIDI 2.0 file...
Attaching one made with the tool mentioned above...

 
Posted : 14/05/2022 7:29 pm
Carlos
Posts: 86
Estimable Member
Topic starter
 

[quotePost id=14577]Oh, you needed a MIDI file of type 2, not a MIDI 2.0 file...
Attaching one made with the tool mentioned above...[/quotePost]
Yes, but they look the same as a midi format 1, I was expecting something like a Meta-Event Sequence Number per track

 
Posted : 15/05/2022 4:57 am
Geoff
Posts: 1047
Noble Member
 

Carlos,

Yes, they may well look the same.

The essential difference is that a type 1 file has multiple tracks that play together, in the same time frame. A type 2 file also contains multiple tracks, that do not necessarity play in the same time frame - but as I understand it, MIGHT do.

I did see a type 2 file once, I think something from a game, and the delta time reset to 000 at the end of the first section. Don't know where this file is now. I think it came from Jonas.

The problem with such a file is that the playing software (not a normal SMF player) needs to expect such data, and know what to do with it. As in, do the separate parts need to be played together, or one after the other. This may be why type 2 files are so rarely used, it may well be much more more convenient to use multiple type 1 files which can be played back normally.

Geoff

 
Posted : 15/05/2022 5:13 am
Bavi_H
Posts: 267
Reputable Member
 

[quotePost id=14579]I was expecting something like a Meta-Event Sequence Number per track[/quotePost]
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.

About Jason's example Type 2 MIDI files:

In the previous thread where Jason posted those example Type 2 MIDI files, there was some discussion about them being from a Star Wars video game. I investigated a little and believe they are from the LucasArts game Star Wars: Dark Forces. It looks like the music in that game is actually contained in GMD files. However, the content of a GMD file includes MIDI file chunks, so it would be easy to extract the MIDI file chunks from a GMD file into a separate MIDI file.

The page about GMD files says the System Exclusive messages they contain are part of LucasArts's iMUSE format. Wikipedia describes iMUSE is an "interactive music system" used "to synchronize music with the visual action in a video game so that the audio continuously matches the on-screen events and transitions from one musical theme to another are done seamlessly." So it appears the Type 2 MIDI file chunks inside those GMD files are used to store MIDI snippets that are switched between based on actions in the game.

[quotePost id=14576]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][/quotePost]
Those System Exclusive messages use a "Manufacturer ID" of 7D. The MIDI 1.0 specification says:

"Special ID 7D is reserved for non-commercial use (e.g. schools, research, etc.) and is not to be used on any product released to the public. Since Non-Commercial codes would not be seen or used by an ordinary user, there is no standard format."

I interpret that to mean a System Exclusive message with Manufacturer ID of 7D should only be used for private purposes. (If you need to create System Exclusive messages for public use, The MIDI Manufacturers Association wants you to pay for a Manufacturer ID and publish the format of System Exclusive messages you create with it.) If the game only stores those System Exclusive messages in its private GMD file format, that's sort of a private use even though it was part of a publicly released commercial product, since they're technically not MIDI files.

By the way, I noticed that after the 7D byte, the next byte seems to be either 00, 01, or 03. If it is 03, then the following bytes are actually ASCII text ending with a 00 byte and the F7 byte that ends the System Exclusive message. These text commands are mentioned in the page about GMD files, but it only lists their patterns and says their meaning is unknown.

 
Posted : 15/05/2022 7:56 am
Geoff
Posts: 1047
Noble Member
 

Carlos,

I had a dig in my drives, and 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.

The header shows that it is a type 2 file.

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 attach a .zip file. This contains the original empire.mid, also my file empire.txt which is the text decoded version.

I think that the .mid file played OK using synthfont.

You may find this interesting?

Geoff

 
Posted : 15/05/2022 7:59 am
Carlos
Posts: 86
Estimable Member
Topic starter
 

[quotePost id=14582]
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.
[/quotePost]
I can't find where it resets the time delay to 0 doesn't it play all 3 tracks at once?

 
Posted : 15/05/2022 8:10 am
Geoff
Posts: 1047
Noble Member
 

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.

Note the note ON event near to the end of the main section, and no matching note OFF event. Then, the next section contains the matching note OFF, after a slight delay.

The DECODE program I have clearly understands something (I guess) about type 2 files.

Geoff

 
Posted : 15/05/2022 8:33 am
Page 1 / 5
Share: