dmid – MIDI to OPL3 converter using GENMIDI-type instrument banks
decodes MIDI instructions either from
or from standard input,
instructions suitable for playback by
To program instruments, an OPL2 instrument bank formatted as
must be provided.
Since it is assumed that the bank is contained in a
file, its default location is
This may be overridden with the
command line option.
flag enables streaming mode,
in which the input file is a stream of MIDI events.
The file needn’t provide any timing information such as MIDI tics.
This is suitable for MIDI instruments.
lumps, two voices are defined per instrument.
For compatibility, the
flag disables the second voice, reducing the number of
It also disables
specific features and produces an IMF-format stream,
which can be used in other game engines.
Play a MUS file from a
% games/wadfs /sys/games/lib/doom/doom2.wad
createfile SW18_7: file already exists
% games/mus /mnt/wad/d_doom | games/dmid | games/opl3 >/dev/audio
Play a MIDI stream from a USB device (see
% games/wadfs /sys/games/lib/doom/doom2.wad >/dev/null
% games/dmid -s /dev/usb/ep10.1/data | games/opl3 >/dev/audio
first appeared in 9front (July, 2018).