Re: [LAU] Scripting jackd connections

From: Joel Roth <joelz@email-addr-hidden>
Date: Wed Jun 15 2016 - 06:01:44 EEST

Hi worik,

worik wrote:
> Friends
>
> Apologies if this has been asked and answered already but I can find no
> solutns.
>
> My jackd set up is quite idiosyncratic. When I plug in my external
> sound gear I have to change the connections each time to get sound out.
> I also use a variety of gear from the same computer each with its own
> requirements.
>
> I would like to be able to write a script that would start up jackd, set
> the default sound IO to use jackd (I am on Ubuntu Studio) start a couple
> of other applications and change the connections.
>
> The man page for jackd is not much help. I have found some pages that
> have part of the answer (e.., http://www.64studio.com/node/740) but
> surely there is some direct way of manipulating jackd connections
> without a mouse and GUI?

Jack usually comes with command-line utilities jack_connect
and jack_disconnect, which you can easily script. To see
what ports are available, you can parse the output of
jack_lsp, which is the quick-and-dirty approach Nama uses.

There is jack-plumbing, a simple utility/daemon which will
make connections based on a config file, jack.plumbing.

There is also a python module that looks like it might
be helpful, although I wonder if it can connect
arbitrary ports.

https://pypi.python.org/pypi/JACK-Client/0.4.1

cheers,

Joel

 
> Worik
>
> --
> Why is the legal status of chardonnay different to that of cannabis?
> root@email-addr-hidden 021-1680650, (03) 4821804
> Aotearoa (New Zealand)
> I voted for love
>
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user@email-addr-hidden
> http://lists.linuxaudio.org/listinfo/linux-audio-user

-- 
Joel Roth
  
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Wed Jun 15 08:15:01 2016

This archive was generated by hypermail 2.1.8 : Wed Jun 15 2016 - 08:15:01 EEST