aplaymidi
Play MIDI files through ALSA sequencer
TLDR
Play MIDI file
$ aplaymidi -p [hw:1,0] [file.mid]
List available MIDI ports$ aplaymidi -l
Play with delay after the end of each file$ 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 client:port, --port client:port
Set the sequencer port(s) to which MIDI events are sent. A client can be specified by number, name, or name prefix.-l, --list
List available MIDI ports-d seconds, --delay seconds
Delay after the end of each MIDI file, to allow the last notes to die away.-h, --help
Print a list of options.-V, --version
Print the current version.
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)
