[LAU] how can I send a midi command from bash through jack to my HW controller?
dak at gnu.org
Sun Oct 8 10:26:03 UTC 2017
<athanasios.silis-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> writes:
> Hi all and thank you for your immediate responses.
> In the end what I was looking for was not the "midi through port" but a
> virtual midi port.
> To do that I had to add in /etc/modules-load.d/audio.conf
> snd-virmidi midi_devs=1 index=5
> then I could see
> $ amidi -l
> Dir Device Name
> ..... (other devices) .....
> IO hw:5,0 Virtual Raw MIDI (16 subdevices)
> and at the same time it would show up in jack's "midi" tab
> then I could simply use it as
> amidi -phw:5,0 -S <hexbytes>
> and the midi msg was surely enough sent correctly to the HW controller.
You need virtual devices in order to emulate a _raw_ device for a device
only existing as an ALSA _sequencer_ port (like some virtual keyboard or
ALSA's Midi through).
But you already _have_ a raw device. This makes no sense. Why don't
you use the raw device for the BCR2000 rather than (presumably)
connecting its sequencer device to the Midi Through sequencer port of
ALSA and then needing a virtual raw device in order to access the Midi
Through sequencer port?
More information about the Linux-audio-user