1 .TH AMIDI 1 "26 Jun 2006"
4 amidi \- read from and write to ALSA RawMIDI ports
7 \fBamidi\fP [\fI\-p port\fP] [\fI\-s file\fP | \fI\-S data\fP]
8 [\fI\-r file\fP] [\fI\-d\fP] [\fI\-t seconds\fP] [\fI\-a\fP]
12 is a command-line utility which allows one to receive and send
13 SysEx (system exclusive) data from/to external MIDI devices.
14 It can also send any other MIDI commands.
17 handles only files containing raw MIDI commands, without timing
20 does not support Standard MIDI (.mid) files, but
34 options to display information;
35 or use at least one of the
41 options to specify what data to send or receive.
45 Help: prints a list of options.
49 Prints the current version.
52 .I \-l, \-\-list\-devices
53 Prints a list of all hardware MIDI ports.
56 .I \-L, \-\-list\-rawmidis
57 Prints all RawMIDI definitions.
58 (used when debugging configuration files)
62 Sets the name of the ALSA RawMIDI port to use.
63 If this is not specified,
65 uses the default port defined in the configuration file
66 (the default for this is port 0 on card 0, which may not exist).
69 .I \-s, \-\-send=filename
70 Sends the contents of the specified file to the MIDI port.
71 The file must contain raw MIDI commands (e.g. a .syx file);
72 for Standard MIDI (.mid) files, use
76 .I \-r, \-\-receive=filename
77 Writes data received from the MIDI port into the specified file.
78 The file will contain raw MIDI commands (such as in a .syx file);
79 to record a Standard MIDI (.mid) file, use
83 will filter out any Active Sensing bytes (FEh), unless the
85 option has been given.
88 .I \-S, \-\-send\-hex="..."
89 Sends the bytes specified as hexadecimal numbers to the MIDI port.
93 Prints data received from the MIDI port as hexadecimal bytes.
94 Active Sensing bytes (FEh) will not be shown, unless the
96 option has been given.
98 This option is useful for debugging.
101 .I \-t, \-\-timeout=seconds
102 Stops receiving data when no data has been received for the specified
105 If this option has not been given, you must press Ctrl+C (or kill
107 to stop receiving data.
110 .I \-a, \-\-active\-sensing
111 Does not ignore Active Sensing bytes (FEh) when saving or printing
112 received MIDI commands.
117 .B amidi \-p hw:0 \-s my_settings.syx
118 will send the MIDI commands in
124 .B amidi \-S 'F0 43 10 4C 00 00 7E 00 F7'
125 sends an XG Reset to the default port.
128 .B amidi \-p hw:1,2 \-S F0411042110C000000000074F7 \-r dump.syx \-t 1
129 sends a \(lqParameter Dump Request\(rq to a GS device, saves the received
130 parameter data to the file
132 and stops after the device has finished sending data
133 (when no data has been received for one second).
136 .B amidi \-p virtual \-d
137 creates a virtual RawMIDI port and prints all data sent to this port.
140 .I /usr/share/alsa/alsa.conf
141 default rawmidi definitions
144 system\-wide rawmidi definitions
147 user specific rawmidi definitions
155 Clemens Ladisch <clemens@ladisch.de>