← 返回命令列表

Linux command

amidi 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

amidi -l

Send

amidi -p [hw:1,0,0] -s [file.syx]

Receive

amidi -p [hw:1,0,0] -r [output.syx]

Dump

amidi -p [hw:1,0,0] -d

Example

amidi -p [hw:1,0,0] -S "F0 43 10 4C 00 00 7E 00 F7"

说明

amidi is an ALSA utility for sending and receiving raw MIDI data. It works at the byte level, making it suitable for sending system exclusive (SysEx) messages, firmware updates to MIDI devices, or capturing MIDI dumps. Unlike higher-level MIDI sequencers, amidi doesn't interpret MIDI timing or song structure; it transfers raw data to and from hardware ports.

参数

-l, --list-devices
List available hardware MIDI ports
-p _port_, --port=_port_
MIDI port to use (e.g., hw:1,0,0)
-s _file_, --send=_file_
Send contents of file to port
-r _file_, --receive=_file_
Receive data and write to file
-S _hex_, --send-hex=_hex_
Send hexadecimal bytes
-d, --dump
Print received data as hex
-t _seconds_, --timeout=_seconds_
Timeout for receive operations
-a, --active-sensing
Don't ignore active sensing messages

FAQ

What is the amidi command used for?

amidi is an ALSA utility for sending and receiving raw MIDI data. It works at the byte level, making it suitable for sending system exclusive (SysEx) messages, firmware updates to MIDI devices, or capturing MIDI dumps. Unlike higher-level MIDI sequencers, amidi doesn't interpret MIDI timing or song structure; it transfers raw data to and from hardware ports.

How do I run a basic amidi example?

Run `amidi -l` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l, --list-devices do in amidi?

List available hardware MIDI ports