9front - general discussion about 9front
 help / color / mirror / Atom feed
* doom music and opl3 emulation
@ 2018-07-10 16:30 qwx
  0 siblings, 0 replies; only message in thread
From: qwx @ 2018-07-10 16:30 UTC (permalink / raw)
  To: 9front

Hello,

I've been working on a MIDI player which supports GENMIDI lumps in doom wad
files.  These are instrument banks used with OPL2-compatible sound cards.

The end result is a fairly good approximation of what doom sounds like on DOS
with such a sound card.

To try it out:

- grab dmid, opl3 and rc/dmus from my contrib
- install the dmus script so it's accessible as /bin/dmus
- cd dmid; mk dmid.install
- cd opl3; mk install
- mount the doom wad you'll play using wadfs, for example:
	games/wadfs /sys/games/lib/doom/doom2.wad
- launch games/doom with the same wad

Wadfs is required to access the wad's GENMIDI (it will be accessible as
/mnt/wad/genmidi by default).  Dmid uses GENMIDI to convert a MIDI file into
OPL3 instructions;  opl3 then synthesizes pcm audio.  If the dmus script
exists, it is launched by doom to play a music lump, and it writes raw
audio to its stdout.

I'm not sure these belong in 9front, since all three components are required,
it's a bunch of code, and they don't yet have a use outside of doom music.

Anyway, enjoy,

qwx


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-10 16:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-10 16:30 doom music and opl3 emulation qwx

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).