Making Old DOS Games Sound Better in DOSBox-X with Shan SGM-Pro V5 SoundFont

Old DOS games are already great, but let us be honest, MIDI music can sound very rough if it is played through the default Windows MIDI synthesizer. Some games still sound okay, but many of them lose a lot of character because the instruments sound thin, cheap, or just plain boring.

This is where SoundFonts come in.

A MIDI file does not actually contain recorded music like an MP3. It is more like a set of instructions. It tells the computer which notes to play, which instruments to use, how loud they are, and when they should start or stop. The final sound depends on the synthesizer and instrument bank used to play those instructions.

A SoundFont is basically an instrument bank, usually in .sf2 or .sf3 format. It gives the MIDI synthesizer better instrument samples to work with. So instead of your DOS game music sounding like basic Windows MIDI, it can sound fuller, clearer, and more dramatic.

For this setup, I used Shan SGM-Pro V40 SoundFont. It is based around the SGM-style General MIDI sound, which is popular among retro PC gaming users because it gives many DOS game soundtracks a bigger and more modern sound. More information about Shan SGM-Pro can be found at the VOGONS thread here:

Shan SGM-Pro SoundFont on VOGONS

Why Use DOSBox-X with FluidSynth

DOSBox-X already supports MIDI configuration properly, and it can use FluidSynth to play MIDI through a SoundFont. This is cleaner than routing MIDI into another external program.

The basic idea is simple:

  1. Put the SoundFont file somewhere permanent.
  2. Tell DOSBox-X to use FluidSynth.
  3. Point DOSBox-X to the .sf2 file.
  4. Configure the old DOS game to use General MIDI, Roland Sound Canvas, or MPU-401, depending on what the game supports.

For my setup, I placed the SoundFont here:

/home/mypapit/midi/shan.sf2

You can use another folder if you want. Just make sure the path in the DOSBox-X config matches the actual file location.

DOSBox-X MIDI Configuration

# fluid.soundfont: Soundfont (.SF2 or .SF3) to use with Fluidsynth.
#                  One must be specified, for example GeneralUser_GS.sf2.

mpu401          = intelligent
mpubase         = 330
mididevice      = fluidsynth
midiconfig      =
samplerate      = 48000
mpuirq          = -1
mt32.romdir     =
mt32.model      = auto

fluid.driver    = pulseaudio
fluid.soundfont = "/home/mypapit/midi/shan.sf2"
fluid.reverb    = 20
fluid.chorus    = 16

Game Setup

After changing the DOSBox-X config, you still need to configure the DOS game itself.

In the game sound setup program, choose something like:

Music device: General MIDI
Port: 330
IRQ: 9 or default

Some games may show it as:

Roland MPU-401
Sound Canvas
General MIDI

For many DOS games from the 1990s, General MIDI is the correct choice. Examples include games like Doom, Duke Nukem 3D, Descent, Warcraft II, TIE Fighter, and many LucasArts titles.

Do not choose MT-32 unless the game soundtrack was actually made for MT-32. MT-32 and General MIDI are not the same thing. If you choose the wrong one, the music can sound strange, with incorrect instruments.

TIE-FIGHTER DEMO with SHAN SGM-PRO SoundFont

TIE Fighter is a good game to test this because its MIDI soundtrack benefits a lot from a stronger SoundFont. The music becomes more cinematic and less flat compared to the default Windows MIDI output.

Here is a YouTube video showing TIE Fighter using the Shan SGM-Pro SoundFont:

Star Wars: TIE Fighter with Shan SGM-Pro SoundFont

The difference is clear. The brass, strings, and percussion sound much heavier. It does not sound like original hardware, but that is not the goal here. The goal is to make old DOS MIDI music sound better, fuller, and more enjoyable on a modern machine.

Notes:

Keep the SoundFont file in a fixed folder. Do not put it in a temporary download folder because DOSBox-X will fail to load it if the file is moved.

Use a full path in the config file, especially on Windows.

Restart DOSBox-X after editing the config.

Make sure the game itself is configured for General MIDI or MPU-401 music output.

If there is no music, check the file path first. Most problems come from a wrong SoundFont path or a typo in the filename.

Grake – a tool for scanning web pages for Youtube Video URL

grake is a command-line tool for scanning web pages for embedded Youtube video link. As a scanning tool, grake is meant to complement other tool that would accept Youtube URL as its parameter, notably cclive.

Usage Example:

[bash]
# general command line example
grake [YOUTUBE URL]
[/bash]

[bash]
# typical / normal use
grake http://youtube.com/
[/bash]

[bash]
#output as json (for programmatic consumption)
grake –json http://youtube.com/
[/bash]

[bash]
#tell cclive to download youtube urls from grake output

grake http://youtube.com/ | cclive
[/bash]

This of course require the latest release of cclive in order for the download example to work.

Youtube: Google+ Music Video

This video sums up just the thing you wanted to know about Google+

LYRICS:
Check my email, got an invite
To a website I don’t know
Looked like googlebuzz at first sight,
But my friend said that’s a no.
Why did we need, another social network?
Doesn’t Facebook work alright?
A new thing for me to learn
This could take all night, Look out!

What is this google +
I don’t Need google +
There’s another +1 and another +1
What is this google +
Hey, Why’s this red thing here?
Go away google +

You want me to put my friends in circles
But circles are for squares
Everday’s like Sophie’s choice
Trying to choose which friend goes where
But No Parents, or Ex-boyfriends…
Can get in without invites
And when I drunkenly post that he’s cute
I can edit it later that night – whoa

I kinda like google +
Can’t believe I’m on google +
Oh another hangout, and another hang out
I dig my google +
Hey, old high school friend
You can’t join my google +

Friends add me, without me adding them
That feature’s really nice
Randos
Uglies
my pot dealer
and all these friend’s I’ve never liked
No one knows, my circle names,
So even good friend’s get handpicked
Do you make it into my main feed
or do I add you to my circle of pricks

I’m in love with google plus
I’m judgemental on goggle +
and Another douchebag and another loser
You didn’t make my google plus
Hey, Now I’m a facist pig
Thank you google plus!