Installing adlmidi in archlinux

Written By: Max

Date: December 2022

Updated: September 2023

Adlmidi is a midi player for Windows and Linux that emulates the OPL3 FM chip, making it possible to listen to MIDI files without an actual OPL3 card. To install it for archlinux, the easiest way is to install the libadlmidi-git (AUR) package. You can also build it yourself by cloning the Git hub repository. To play a file, type "adlmidiplay (filename)" A full list of commands are included below. You can also type
adlmidiplay --help
in the terminal to display the commands.

Usage: adlmidi (midifilename) [ (options) ]
[ (bank) [ (numchips) [ (numfourops)] ] ]
-t Enables tremolo amplification mode
-v Enables vibrato amplification mode
-s Enables scaling of modulator volumes
-vm <num> Chooses one of volume models:

-frb Enables full-ranged CC74 XG Brightness controller
-nl Quit without looping
-w Write WAV file rather than playing
-mb Run the test of multibank over embedded. 62, 14, 68, and 74'th banks
will be combined into one
--solo ^lt;track> Selects a solo track to play
--only (track1,...,trackN) Selects a subset of tracks to play
--song (song ID 0...N-1) Selects a song to play (if XMI)
-ea Enable the auto-arpeggio
-fp Enables full-panning stereo support
--emu-nuked Uses Nuked OPL3 v 1.8 emulator
--emu-nuked7 Uses Nuked OPL3 v 1.7.4 emulator
--emu-dosbox Uses DosBox 0.74 OPL3 emulator
--emu-opal Uses Opal OPL3 emulator
--emu-java Uses Java OPL3 emulator

Where (bank) - number of embeeded bank or filepath to custom WOPL bank file

Note: To create WOPL bank files use OPL Bank Editor you can get here.

Available embedded banks by number

Use banks 2-5 to play Descent "q" soundtracks. Look up the relevant bank number from descent.sng.
The fourth parameter can be used to specify the number
of four-op channels to use. Each four-op channel eats the room of two regular channels. Use as many as required.
The Doom & Hexen sets require one or two, while Miles four-op set requires the maximum of numcards*6.

For further information, see https://github.com/Wohlstand/libADLMIDI.