The Wayback Machine - https://web.archive.org/web/20230512155039/https://www.geeksforgeeks.org/aplaymidi-command-in-linux-with-examples/
Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

aplaymidi Command in Linux with Examples

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

aplaymidi command in Linux is used to play standard MIDI(Musical Instrument Digital Interface) files, by sending the content of a MIDI file to an ALSA(Advanced Linux Sound Architecture) MIDI port, sound renderer like timidity or a hardware MIDI device are required to play MIDI files.

Syntax:

aplaymidi [options] [MIDIfile]

Options:

  • -h or –help: This is used to show all the options and syntax of the command.
    $ aplaymidi -h

  • -V or –version: It is used to display the current version of the SW.
    $ aplaymidi -V

  • -l or –list: It is used to display the list of all possible MIDI output ports.
    $ aplaymidi -l

  • -p or –port=client:port : It specifies ports(s) to play MIDI to.
    $ aplaymidi -p 14:0 test1.mid

  • -d or –delay=seconds : It delay once MIDI sound ends.
    $ aplaymidi -p 14:0 -d 10 test1.mid

My Personal Notes arrow_drop_up
Last Updated : 24 Jun, 2019
Like Article
Save Article
Similar Reads
Related Tutorials