fraggle
Super Moderator

Posts: 5999
Registered: 07-00 |
Ralphis said:
Does DosBox's opl emulation have an issue with pure midi files or is that something that has to do with Chocolate Doom in particular? If you load udmx, most of the midis will play totally butchered (wrong tempos, tracks out of sync). Of course, you have to warp to 32 and then idmus to hear these. Just curious as to what the culprit may be
Yeah, it's a Chocolate Doom problem, and nothing to do with the underlying OPL emulation code. I wrote the MIDI processing code for doing OPL playback, but it's incomplete. Specifically, there's a MIDI command that sets the tempo that I didn't implement. It doesn't seem to be a very commonly used command, so most MIDI files play back okay, but a few (udmx and others) get screwed up because of it.
mewse said:
Vanilla doom didn't support midi format music, it was called mus format. I think Boom integrated a util called mid2mus into the engine so that you could put actual midi files into the wad rather than running the conversion then putting in a mus lump.
Dead wrong, I'm afraid. I believe early versions of Doom only supported MUS, but by 1.9 it could definitely play MIDIs natively. Interestingly from my examination of the DOS executables it's clear that internally everything is MUS. Paul Radek (author of the DMX sound library used in Doom) wrote the original MIDI2MUS tool, so it's most likely that he integrated the code into Doom as a conversion stage.
|