aplaymidi
TLDR
Play MIDI file
$ aplaymidi -p [hw:1,0] [file.mid]
List available MIDI ports$ aplaymidi -l
Play with delay$ aplaymidi -p [hw:1,0] -d [2] [file.mid]
SYNOPSIS
aplaymidi [-p port] [-d delay] files
DESCRIPTION
aplaymidi plays MIDI files through ALSA sequencer ports. It sends MIDI events to connected hardware synthesizers, software synths, or other MIDI applications.
Unlike audio players, aplaymidi only sends MIDI messages; actual sound generation depends on the receiving device or software.
PARAMETERS
-p port
MIDI output port (use -l to list)-l, --list
List available MIDI ports-d seconds, --delay seconds
Delay before playing
CAVEATS
Requires a connected MIDI synthesizer (hardware or software) to produce sound. Port numbers may change if MIDI devices are reconnected. Only plays Standard MIDI Files (SMF).
HISTORY
aplaymidi is part of the ALSA utilities, providing basic MIDI file playback since ALSA became the standard Linux audio architecture in the early 2000s.
SEE ALSO
arecordmidi(1), aconnect(1), timidity(1), fluidsynth(1)


