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.

INSTALL

sudo apt install alsa-utils
copy
sudo dnf install alsa-utils
copy
sudo pacman -S alsa-utils
copy
sudo apk add alsa-utils
copy
sudo zypper install alsa-utils
copy
nix profile install nixpkgs#alsa-utils
copy

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

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid