9front - general discussion about 9front
 help / color / mirror / Atom feed
From: qwx <qwx@sciops.net>
To: 9front@9front.org
Subject: doom music and opl3 emulation
Date: Tue, 10 Jul 2018 18:30:52 +0200	[thread overview]
Message-ID: <ED08BA111D95884B5E26E9A642F9872C@wopr.sciops.net> (raw)

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


                 reply	other threads:[~2018-07-10 16:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ED08BA111D95884B5E26E9A642F9872C@wopr.sciops.net \
    --to=qwx@sciops.net \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).