LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

aplaymidi

Play MIDI files through ALSA sequencer

TLDR

Play MIDI file
$ aplaymidi -p [hw:1,0] [file.mid]
copy
List available MIDI ports
$ aplaymidi -l
copy
Play with delay after the end of each file
$ aplaymidi -p [hw:1,0] -d [2] [file.mid]
copy

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

Copied to clipboard
Kai