[LAU] jack_disconnect on ports with spaces

From: Iain Mott <mott@email-addr-hidden>
Date: Mon Feb 20 2012 - 11:09:08 EET

Hi list,

I have a script that needs to disconnect various jack connections. Works
fine with client/port names without spaces, like this:

jack_disconnect pure_data_0:output0 system:playback_1

Other port names (specifically, ALSA MIDI port names) however have
spaces in them and don't seem to work with jack_disconnect. Have tried
putting quotes around the names, eg.

jack_disconnect 'Pure Data:PureData Midi-Out 1' 'Hammerfall DSP:HDSP
MIDI 1'

and

jack_disconnect 'Pure Data':'PureData Midi-Out 1' 'Hammerfall DSP':'HDSP
MIDI 1'

Tried double-quotes too as well as underscore characters between the
words but none of these techniques work unfortunately. They result in
error messages like this:

ERROR Hammerfall DSP:HDSP MIDI 1 not a valid port

Nor have i found a way to rename the ports.

Some more detail:

In qjackctl, these ALSA client and port names include numbers. eg.

129:Pure Data

and the port:

1:Pure Data Midi-Out

The HDSP has this too:

20:Hammerfall DSP

and

0:HDSP MIDI 1

I've tried I think all the permutations of names with numbers, numbers
without names and names and numbers together but I can get none to work;

Any suggestions?

Cheers,

Iain

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Mon Feb 20 12:15:02 2012

This archive was generated by hypermail 2.1.8 : Mon Feb 20 2012 - 12:15:02 EET