Can you tell what real model is the pretty piece of technology above meant to be? Bonus points if you guess the music played on it correctly - tell kdrnic

The MIDI page

Help! I can't get MIDI out on Linux or I am in Windows and the MIDI sucks balls!

Don't panic! You may configure, and ship, your game, to use a Allegro's custom synth, which can have that good 90s MIDI quality.

How to use Allegro's custom software MIDI synthesizer

Basically you follow the steps on the Allegro page.
Thus, if you have SF2 files, you can use the pat2dat utility to create a usable patches.dat. You can download a pre-compiled pat2dat for Windows.
In case you download Richard's patches in the .dat format, you will find that it doesn't work. Why? Because whoever prepared the .dat is a madman, and bzip2ed the file while keeping the extension. Fortunately, you have the great kdrnic to save your day and tell you that.
Alternatively, you can download the already fixed file directly from here
Then all you have to do is setup the config file like below
[sound]
midi_card = DIGI
patches = data\patches.dat
and you are good to go.

How to do custom MIDI output in TAPEGRO

Have you got that procedural generation fever?
Are the MIDI files hard to find?
Maybe you want to write a sequencer inside Tapegro?
...or a level with a floor piano?
Never fear! Tapegro counts with exclusive access to Allegro's midi_out function, meaning you can write MIDI notes directly and easily.
You may still find the specs a bit thick to read, and even that something that works in Windoze may not work in MS-DOS, producing no sound.
So here's what I found out: for better compatibility don't assume any default state in the MIDI device. It was necessary to set both volume and program, which were presumably zeroed or invalid. Send the following bytes, for example:
Bytes in hex Meaning
B0 07 FF Set volume controller to max (on channel 0)
C0 00 Change the program to the first one (the grand piano in General MIDI) (also on channel 0)
90 3C 7F Start a note (middle C) with max velocity (still channel 0)
90 3C 00 End the note (middle C) with zero velocity - actually, a note on command with zero velocity is considered a note off (you could ommit the 90) (still channel 0)
Here are some good online specs for that: 1 2