Re: [LAU] Does anyone write a customized JACK patchbay in python?

From: Christopher Arndt <chris@email-addr-hidden>
Date: Wed Apr 03 2019 - 04:54:54 EEST

Am 03.04.19 um 03:30 schrieb crocket:
> It seems easier to write a stupid JACK patchbay in python than to make
> other patchbays do what I want.

I wrote a command line "patchbay" in Python. It's called jack-matchmaker:

https://github.com/SpotlightKid/jack-matchmaker

> I just want every JACK client to alternate between speakers and
> headphones when I press a keyboard shortcut.

You could *almost* do that with jack-matchmaker by defining connection
patterns in two files, copy the file with the configuration you want at
the moment to the file given to jack-matchmaker with the --pattern-file
option ad then send a HUP signal to its process to get it to re-read the
file.

Alas, jack-matchmaker never disconnect existing connections. But maybe
you can take some inspiration from the code.

It uses its own Python-JACK interface (based on ctypes, stolen from
Cadence). I would probably use python-jack instead today:

https://github.com/spatialaudio/jackclient-python/

Chris
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Wed Apr 3 08:15:01 2019

This archive was generated by hypermail 2.1.8 : Wed Apr 03 2019 - 08:15:01 EEST