[Added] Support for MDS music file formats (both variants)

Moderator: GZDoom Developers

Support for MDS music file formats (both variants)

Postby Cacodemon345 » Sat Sep 05, 2020 11:20 am

(Apologies if music format suggestions doesn't belong here)

There is, as of now, no support for MDS music file formats (which was existent from the days of Win95). It would be good if support for this was added.

http://www.vgmpf.com/Wiki/index.php?title=MDS#Technical

Doom Legacy has code for exporting MDS files (both maybe with and without the iStreamID integer). You can look at my code if you wish.
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Support for MDS music file formats (both variants)

Postby wildweasel » Sat Sep 05, 2020 12:12 pm

What is the specific application of this format? Is there a wad that uses it already?
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 16 Jul 2003

Re: Support for MDS music file formats (both variants)

Postby Cacodemon345 » Sun Sep 06, 2020 12:45 am

There isn't any wad that uses it since no source port supports it (apart from Doom Legacy which only uses it for exporting MIDI files to the MDS format). The format was created by Microsoft for Windows 95 for storing MIDI music data to be directly played through the MIDI streaming API (the non-compressed variants which has the iStreamID in their messages can be directly loaded into a MIDIHDR and queued for playback without much setup) and some 90s Arkanoid clones use it for their musics. The compressed variants can be converted to the non-compressed ones by embedding the iStreamID in the messages, modifying the buffer size of the MIDI messages section, setting the flags bit to 0.
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Support for MDS music file formats (both variants)

Postby Graf Zahl » Tue Sep 08, 2020 8:23 am

Is there anything in this format worth supporting?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Support for MDS music file formats (both variants)

Postby Cacodemon345 » Sat Sep 12, 2020 1:00 am

The feature set of the format is honestly more similar to that of a Type-0 SMF format (except that SysEx messages are absent as that would make it more complicated).

As for the games, like I said, some 90s Arkanoid clones use it for playing back music. A couple of other games use the same MDS format too.
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Support for MDS music file formats (both variants)

Postby wildweasel » Sat Sep 12, 2020 8:11 am

Given that MID conversions of the above games don't seem particularly difficult to find, I still question why it's necessary to support them in the original format.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 16 Jul 2003

Re: Support for MDS music file formats (both variants)

Postby Graf Zahl » Sat Sep 12, 2020 2:22 pm

Let's make this short: If you are willing to rewrite your code to play this format through our MIDI sequencer, it will most definitely be added to GZDoom. But I see very little value here writing a processor for this format myself.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Support for MDS music file formats (both variants)

Postby Cacodemon345 » Sun Sep 13, 2020 12:53 pm

Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Support for MDS music file formats (both variants)

Postby Graf Zahl » Sun Sep 13, 2020 1:01 pm

Do you also have a file to test this with? Or even better, a link to a site where to find some?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Support for MDS music file formats (both variants)

Postby Cacodemon345 » Sun Sep 13, 2020 1:04 pm

Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Support for MDS music file formats (both variants)

Postby Graf Zahl » Sun Sep 27, 2020 5:16 am

Just tested and added.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests