Connect to jack-rt ports with their alias

24 views
Skip to first unread message

Ralf Ramsauer

unread,
Nov 13, 2019, 12:06:18 PM11/13/19
to midi...@googlegroups.com
Hi,

I'd like to subscribe to jack midi ports by using their aliases, as port
names might change.

E.g., jack-lsp -lA reports:
[...]
system:midi_capture_3
alsa_pcm:Arturia-KeyStep-32/midi_playback_1
Arturia-KeyStep-32:midi/playback_1
port playback latency = [ 0 0 ] frames
port capture latency = [ 0 0 ] frames

I can establish the connection if I use 'system:midi_capture_3' in
mididings, but if I use 'alsa_pcm:Arturia-KeyStep-32/midi_playback_1' or
'Arturia-KeyStep-32:midi/playback_1', it fails:

warning: regular expression
'alsa_pcm:Arturia-KeyStep-32/midi_playback_1' didn't match any JACK MIDI
ports

Even wildcards, like '.*Arturia.*', won't establish the connection.

Any suggestions?

Thanks!
Ralf

--
Ralf Ramsauer
GPG: 73F94D11C85252CC

STEFETS - https://github.com/stefets/live-config/

unread,
Nov 21, 2019, 8:43:08 PM11/21/19
to mididings
Hi!

Since it's regular expression I suspect the slash. Try to escape it with a backslash before the slash.

Example :
alsa_pcm:Arturia-KeyStep-32\/midi_playback_1

Let me know if it works

Bye!

Stephane Gagnon

Ralf Ramsauer

unread,
Nov 22, 2019, 7:29:38 AM11/22/19
to midi...@googlegroups.com, STEFETS - https://github.com/stefets/live-config/
Hi Stephane,

On 11/22/19 2:43 AM, STEFETS - https://github.com/stefets/live-config/
wrote:
> Hi!
>
> Since it's regular expression I suspect the slash. Try to escape it with
> a backslash before the slash.
>
> Example :
> alsa_pcm:Arturia-KeyStep-32\/midi_playback_1

Aah, good point, but that didn't solve my issue.

Even .*Arturia.*playback.* doesn't work. And that one should match in
any case.

That's really annoying. Every time I plug in/out my USB hub, jack port
numbers will be shuffled, and I have to align the script. Only original
jack names (as listed by jack_lsp) seem to work. Aliases (as listed by
jack_lsp -A) don't. Sigh...

Guess I'll have to dig into mididing's code and check how those names
are queried. Maybe mididings doesn't support jack aliases for lookup.
But in that case, I wonder that I'm the first one to run into this issue.

Thanks
Ralf
> --
> You received this message because you are subscribed to the Google
> Groups "mididings" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mididings+...@googlegroups.com
> <mailto:mididings+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mididings/3d7df697-d351-4833-94d5-2ec6f3805ac3%40googlegroups.com
> <https://groups.google.com/d/msgid/mididings/3d7df697-d351-4833-94d5-2ec6f3805ac3%40googlegroups.com?utm_medium=email&utm_source=footer>.

Ralf Ramsauer

unread,
Nov 24, 2019, 5:53:09 AM11/24/19
to midi...@googlegroups.com, STEFETS - https://github.com/stefets/live-config/
Hi,

On 11/22/19 1:29 PM, Ralf Ramsauer wrote:
> Hi Stephane,
>
> On 11/22/19 2:43 AM, STEFETS - https://github.com/stefets/live-config/
> wrote:
>> Hi!
>>
>> Since it's regular expression I suspect the slash. Try to escape it with
>> a backslash before the slash.
>>
>> Example :
>> alsa_pcm:Arturia-KeyStep-32\/midi_playback_1
>
> Aah, good point, but that didn't solve my issue.
>
> Even .*Arturia.*playback.* doesn't work. And that one should match in
> any case.
>
> That's really annoying. Every time I plug in/out my USB hub, jack port
> numbers will be shuffled, and I have to align the script. Only original
> jack names (as listed by jack_lsp) seem to work. Aliases (as listed by
> jack_lsp -A) don't. Sigh...
>
> Guess I'll have to dig into mididing's code and check how those names
> are queried. Maybe mididings doesn't support jack aliases for lookup.
> But in that case, I wonder that I'm the first one to run into this issue.

So turns out mididings really didn't support jack aliases. With this [1]
patch (after some housekeeping things), it does.

Is mididings still maintained? Looks like there are a lot of open issues
and pull requests on github... I'd like to get those pieces integrated.

Thanks
Ralf

[1]
https://github.com/rralf/mididings/commit/01fd54ea64d305571fbdeaffcff70165e4c219a5
Reply all
Reply to author
Forward
0 new messages