![]() |
VOOZH | about |
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 is required to play MIDI files.
aplaymidi [options] [MIDIfile]where,
Here's a breakdown of the most commonly used options with aplaymidi:
This is used to show all the options and syntax of the command.
$ aplaymidi -h👁 -h or --helpIt is used to display the current version of the SW.
$ aplaymidi -V👁 -V or --versionIt is used to display the list of all possible MIDI output ports.
$ aplaymidi -l👁 -l or --listThis option specifies the MIDI output port to which the file will be sent. For instance, 14:0 represents a specific MIDI device or port.
$ aplaymidi -p 14:0 test1.mid👁 -p or --port=client:portAdds a delay after playback ends. This can be useful in cases where you want the system to pause for a few seconds after the file finishes playing.
$ aplaymidi -p 14:0 -d 10 test1.mid👁 -d or --delay=secondsThe aplaymidi command in Linux is an essential tool for playing MIDI files. Its simplicity and flexibility make it an excellent choice for anyone working with MIDI files, whether for music production, learning, or simply enjoying MIDI tunes. With features like port selection and playback control, aplaymidi ensures you can tailor the MIDI playback experience to your specific needs.