[LAU] how can I send a midi command from bash through jack to my HW controller?

David Kastrup dak at gnu.org
Sun Oct 8 13:17:48 UTC 2017

Clemens Ladisch <clemens-P6GI/4k7KOmELgA04lAiVw at public.gmane.org>

> David Kastrup wrote:
>> $ amidi -p "UM-4 MIDI 1" -d
>> ALSA lib rawmidi.c:286:(snd_rawmidi_open_noupdate) Unknown RawMidi UM-4 MIDI 1
> The card number can be replaced with the card ID:
>   amidi -p hw:UM4 -d

Bah.  Indeed:

dak at lola:/usr/local/tmp/lilypond$ amidi -p hw:UM4 -d
0 bytes read
dak at lola:/usr/local/tmp/lilypond$ amidi -l
Dir Device    Name
IO  hw:1,0,0  UM-4 MIDI 1
IO  hw:1,0,1  UM-4 MIDI 2
IO  hw:1,0,2  UM-4 MIDI 3
IO  hw:1,0,3  UM-4 MIDI 4
dak at lola:/usr/local/tmp/lilypond$ aplaymidi -l
 Port    Client name                      Port name
 14:0    Midi Through                     Midi Through Port-0
 20:0    UM-4                             UM-4 MIDI 1
 20:1    UM-4                             UM-4 MIDI 2
 20:2    UM-4                             UM-4 MIDI 3
 20:3    UM-4                             UM-4 MIDI 4
dak at lola:/usr/local/tmp/lilypond$ cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfe020000 irq 31
 1 [UM4            ]: USB-Audio - UM-4
                      EDIROL UM-4 at usb-0000:00:1a.7-4.4, full speed

Any reason the user-level commands do not talk about the "card ID" but
show something else?

David Kastrup

More information about the Linux-audio-user mailing list