[LAU] Scripting jackd connections
Joel Roth
joelz at pobox.com
Wed Jun 15 03:01:44 UTC 2016
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 at worik.org 021-1680650, (03) 4821804
> Aotearoa (New Zealand)
> I voted for love
>
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user at lists.linuxaudio.org
> http://lists.linuxaudio.org/listinfo/linux-audio-user
--
Joel Roth
More information about the Linux-audio-user
mailing list