
amixer | 39
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
amidi
amidi [options]
Read and write raw MIDI files (.syx format, without timing infor-
mation) to ALSA ports. For standard MIDI (.mid) files, use
aplaymidi and arecordmidi.
Options
-a, --active-sensing
Record and send active-sensing (FEh) bytes in MIDI
commands. By default, these bytes are ignored.
-d, --dump
Output all received data directly to the screen.
-h, --help
Display help information and quit.
-l, --list-devices
List all hardware MIDI ports.
-L, --list-rawmidis
List all RawMIDI definitions. Useful for debugging configura-
tion files.
-p, --port=name
Use the specified port. This overrides the port set in the
configuration file. If neither this flag nor the configuration file
sets a port, the default is port 0 on device 0, which may or may
not exist.
-r, --receive=filename
Write data from the port specified with the -p or --port flag to
the file named here. This will be a raw file, and should end in
.syx. Unless you use the -a option, it will not contain any
Active Sensing (FEh) bytes.
-s, --send=filename
Send the file to the port specified with the -p or --port flag.
Use raw (.syx) MIDI files only.
-S, --send-hex="hex-numbers..."
Send a string of hexadecimal numbers to the port specified
with the -p or --port flag.
-t, --timeout=n
Stop listening after n seconds of receiving ...