aplaymidi Command in Linux with Examples

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

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.