aplaymidi

aplaymidi

The aplaymidi command in Linux is used to play MIDI files on a MIDI device. MIDI is a standard that allows computers and electronic musical instruments to communicate with each other.

Here are some examples of how to use the aplaymidi command:

# To play the MIDI file `mysong.mid` on the first MIDI port:
aplaymidi mysong.mid

# To play the MIDI file `mysong.mid` on the second MIDI port at a playback rate of 120 BPM:
aplaymidi -p 1 -r 120 mysong.mid

# To show help for the aplaymidi command:
aplaymidi -h

help

aplaymidi [options] filename

Play MIDI file on a MIDI device.

Options:

-c, --channels=CHANNELS       Use CHANNELS channels (default 1).
-r, --rate=RATE              Set playback rate (default 44100).
-p, --port=PORT              Use MIDI port PORT (default 0).
--list-devices               List available MIDI devices.
--verbose                    Be more verbose.
-h, --help                   Show this help message.
-V, --version                Print version information.

For more information, see the aplaymidi man page.

breakdown

-c, --channels=CHANNELS: This option specifies the number of channels to use. The default value is 1.
-r, --rate=RATE: This option specifies the playback rate. The default value is 44100.
-p, --port=PORT: This option specifies the MIDI port to use. The default value is 0.
--list-devices: This option lists the available MIDI devices.
--verbose: This option makes the output more verbose.
-h, --help: This option shows this help message.
-V, --version: This option prints version information.

Last updated