DOSBox and MIDI music

For Documentation: Userguides and howto's.

DOSBox and MIDI music

Postby truth_deleted » 2013-10-20 @ 17:38

DOS games typically support music playback via a MIDI or a soundblaster device. DOSBox emulates both. On Windows, the DOSBox MIDI data is played through the built-in device Microsoft GS Wavetable Synth; it is limited by its samples, mono sound, and lack of effects. DOS games from 1988 to the early 1990s (for example, Sierra adventure games) would typically encode music optimized for the Roland MT-32 MIDI device. A MT-32 emulator is available from the MUNT team; and a dosbox binary with this MT-32 emulation is available here: http://www.vogons.org/viewtopic.php?f=29&t=37138. After the early 1990s, MIDI music was typically encoded and optimized for a General MIDI device, not for MT-32 (for example, Roland Sound Canvas SC-55). For the purposes of high quality MIDI emulation, these two types of MIDI devices are preferred; rather than the MIDI device built in to Windows. As the MUNT team hosts MT-32 MIDI emulation, there are others who have delivered a high quality General MIDI emulator.

Using MinGW/GCC4.6.2 and a patch by gaula92 and ykhwong (*), dosbox was built to use the "fluidsynth software synthesizer". This synthesizer emulates a General MIDI (GM) device when coupled with an appropriate SoundFont from a GM device, a file format for sample based instrument sounds (http://en.wikipedia.org/wiki/SoundFont). The synthesizer was downloaded in the form of a library and its dependent libraries from here: http://fluidsynth.flyx.org. For obtaining a free SoundFont instrument file, instructions are here: http://sourceforge.net/apps/trac/fluidsynth/wiki/SoundFont.

In the attached archive are the necessary files to run DOSBox in Windows along with high quality General MIDI emulation. The only missing elements are the SoundFont file and two edits to your dosbox.conf file, as shown:
mididevice=synth
midiconfig=SGM-V2.01.sf2

The mididevice is always "synth" to enable GM music. However, midiconfig is the name of the SoundFont file which would be located in your dosbox directory. The other requirement is that the DOS game is configured for General MIDI music.

Edit: I compiled and attached a proper version of DOSbox-SVN+GeneralMIDI. It also is from the latest SVN, updated just a few days ago. The attached archive can completely replace the current one attached to the post. This archive has fluidsynth version 1.1.3.

the second archive (dosbox-SVN+GM-2.zip) includes the newer fluidsynth 1.1.6 library; it also has different dependencies and is more compact. I haven't tested this version as much as in the previous archive (fluidsynth 1.1.3).

The newer library was obtained from here:
http://sourceforge.net/projects/jorgan/files/fluidsynth


(*) http://www.vogons.org/viewtopic.php?t=26357; http://www.vogons.org/viewtopic.php?t=27831
Attachments
dosbox-SVN+GM-2.zip
(1.72 MiB) Downloaded 331 times
dosbox-SVN+GM.zip
(2.16 MiB) Downloaded 259 times
truth_deleted
 

Re: DOSBox and MIDI music

Postby Dominus » 2013-10-20 @ 20:41

just for completeness sake, at least the MT32 emulation can be accessed with lock stock normal DOSBox when installing the munt qt-gui and the munt driver. I came to prefer this method since it doesn't involve patching DOSBox and works for multiple projects.

FLuidsynth otoh doesn't seem to have a driver or program for Windows and needs to be compiled in...

I think this needs to go into the guides sections (pm me if there are other posts by you that need to be in there as well) and I'll move it now
User avatar
Dominus
DOSBox Moderator
 
Posts: 7337
Joined: 2002-10-03 @ 09:54
Location: Vienna

Re: DOSBox and MIDI music

Postby Great Hierophant » 2013-10-21 @ 21:22

I get an error "This program can't start because libgcc_s_dw2-1.dll is missing from your computer. Try reinstalling the program to fix this problem."
User avatar
Great Hierophant
l33t
 
Posts: 2326
Joined: 2003-4-27 @ 08:20

Re: DOSBox and MIDI music

Postby Dominus » 2013-10-21 @ 21:28

yes, truth5678 is already preparing an update...
User avatar
Dominus
DOSBox Moderator
 
Posts: 7337
Joined: 2002-10-03 @ 09:54
Location: Vienna

Re: DOSBox and MIDI music

Postby Dominus » 2013-10-22 @ 15:43

1st post updated with new binaries and comments.
User avatar
Dominus
DOSBox Moderator
 
Posts: 7337
Joined: 2002-10-03 @ 09:54
Location: Vienna

Re: DOSBox and MIDI music

Postby Great Hierophant » 2013-10-26 @ 16:01

I tried the second version with an SC-55 soundfont and it sounded very good, except for the drum part. They sounded wholly wrong, barely even registering when they should be close to thundering. Even the Windows GS Synth sounded much better.
User avatar
Great Hierophant
l33t
 
Posts: 2326
Joined: 2003-4-27 @ 08:20

Re: DOSBox and MIDI music

Postby Mau1wurf1977 » 2013-10-27 @ 00:11

Hmm the stock standard DOSBox with MUNT and BASSMIDI works very well for me.
User avatar
Mau1wurf1977
l33t++
 
Posts: 7652
Joined: 2010-8-27 @ 04:15
Location: Western Australia


Return to DOSBox Guides

Who is online

Users browsing this forum: No registered users and 1 guest