Linux Commands Examples

A great documentation place for Linux commands

aplaymidi

play Standard MIDI Files

Synopsis

aplaymidi -p client:port[,...] [-d delay] midifile ...


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
inotifywait /tmp/output.mid
aplaymidi --port 14:0 /tmp/output.mid &> /dev/null &
) &> /dev/null &
./scripts/run.sh -g /tmp/graph.png -o /tmp/output.mid -r 5 \
$(find test test/files.ifnimidi.com/ -name '*.mid' | shuf -n 5)
eog --fullscreen /tmp/graph.png &> /dev/null &
echo 'Waiting for aplaymidi...'
wait
0
source
            
alias stumpwm="sbcl ~/.stumpwm"
alias playmidi="aplaymidi -p 73:0"
alias halt="sudo /sbin/halt"
alias p3="play123"
alias nano="nano -w"

description

aplaymidi is a command-line utility that plays the specified MIDI file(s) to one or more ALSA sequencer ports.

options

-h, --help

Prints a list of options.

-V, --version

Prints the current version.

-l, --list

Prints a list of possible output ports.

-p, --port=client:port,...

Sets the sequencer port(s) to which the events in the MIDI file(s) are sent.

A client can be specified by its number, its name, or a prefix of its name. A port is specified by its number; for port 0 of a client, the ":0" part of the port specification can be omitted.

Multiple ports can be specified to allow playback of MIDI file(s) that contain events for multiple devices (ports), as specified by "Port Number" meta events.

For compatibility with pmidi(1), the port specification is taken from the ALSA_OUTPUT_PORTS environment variable if none is given on the command line.

-d, --delay=seconds

Specifies how long to wait after the end of each MIDI file, to allow the last notes to die away.


bugs

aplaymidi handles "Port Number" meta events, but not "Port Name" meta events.


see also

pmidi
playmidi


author

Clemens Ladisch <clemens[:at:]ladisch[:dot:]de>

How can this site be more helpful to YOU ?


give  feedback