amidi

amidi

The amidi command is used to send and receive MIDI messages in Linux. MIDI is a standard used to control digital instruments such as electronic keyboards and sequencers.

Here are some examples of the amidi command:

  • Set the volume of channel 10 to 127.

amidi -c 10 -p 127

  • Play the note C4 on channel 10.

amidi -c 10 -n 60

  • Play the note C4 on channel 10 for 1 second.

amidi -c 10 -n 60 -d 100

help

Usage: amidi options

-h, --help                      this help
-V, --version                   print current version
-l, --list-devices              list all hardware ports
-L, --list-rawmidis             list all RawMIDI definitions
-p, --port=name                 select port by name
-s, --send=file                 send the contents of a (.syx) file
-r, --receive=file              write received data into a file
-S, --send-hex="..."            send hexadecimal bytes
-d, --dump                      print received data as hexadecimal bytes
-T, --timestamp=...             adds a timestamp in front of each dumped message
                realtime
                monotonic
                raw
-t, --timeout=seconds           exits when no data has been received
                                for the specified duration
-a, --active-sensing            include active sensing bytes
-c, --clock                     include clock bytes
-i, --sysex-interval=mseconds   delay in between each SysEx message

breakdown

Last updated