I searched for JACK patchbays. None of them satisfied my needs.
I don't want to see GUI. I want to route every JACK client to either speakers or headphones.
When I press a keyboard shortcut, I want every JACK client to switch between speakers and headphones.
It seems that it's easier to write a customized patchbay than to make existing patchbays do what I want.
I decided to write a very very simple JACK patchbay written in python and customized for my own setup.
Does anyone write a python JACK patchbay customized for one's own setup?
Moderators: MattKingUSA, khz
-
- Established Member
- Posts: 564
- Joined: Thu Mar 12, 2015 8:41 am
- Has thanked: 44 times
- Been thanked: 8 times
Re: Does anyone write a python JACK patchbay customized for one's own setup?
I don't think you need to re-implement something from scratch for switching between jack patchbay presets from a keyboard shortcut.
You can do that with qjackctl by using command line switches: " -a, --active-patchbay=[path] Set active patchbay definition file"
Then it should be just about mapping your keyboard shortcut. (I didn't check the other jack front ends, but they might have options as well).
One thing that could also become an issue are volumes spikes and pops when changing connections.
If so, you'd probably better off with a matrix mixer that does fade in/out or just using main/monitor switching function of most DAW mixers.
This was also discussed here not too long ago and a simple application was suggested (I didn't test it):
viewtopic.php?t=17909
You can do that with qjackctl by using command line switches: " -a, --active-patchbay=[path] Set active patchbay definition file"
Then it should be just about mapping your keyboard shortcut. (I didn't check the other jack front ends, but they might have options as well).
One thing that could also become an issue are volumes spikes and pops when changing connections.
If so, you'd probably better off with a matrix mixer that does fade in/out or just using main/monitor switching function of most DAW mixers.
This was also discussed here not too long ago and a simple application was suggested (I didn't test it):
viewtopic.php?t=17909
What about this: http://aj-snapshot.sourceforge.net/
Very simple, just saves and restores your JACK connections from a text file..
Re: Does anyone write a python JACK patchbay customized for one's own setup?
I looked into aj-snapshot before posting this thread. aj-snapshot doesn't do what I want.gimmeapill wrote:I don't think you need to re-implement something from scratch for switching between jack patchbay presets from a keyboard shortcut.
You can do that with qjackctl by using command line switches: " -a, --active-patchbay=[path] Set active patchbay definition file"
Then it should be just about mapping your keyboard shortcut. (I didn't check the other jack front ends, but they might have options as well).
One thing that could also become an issue are volumes spikes and pops when changing connections.
If so, you'd probably better off with a matrix mixer that does fade in/out or just using main/monitor switching function of most DAW mixers.
This was also discussed here not too long ago and a simple application was suggested (I didn't test it):
viewtopic.php?t=17909
What about this: http://aj-snapshot.sourceforge.net/
Very simple, just saves and restores your JACK connections from a text file..
qjackctl comes with a GUI which I don't want to see at all. I want a daemon that can be run on a headless server.
- nikgnomicradio
- Established Member
- Posts: 109
- Joined: Wed Feb 07, 2018 9:31 pm
- Has thanked: 1 time
- Been thanked: 7 times
- Contact:
Re: Does anyone write a python JACK patchbay customized for one's own setup?
what do you require that is lacking from aj-snapshot?I looked into aj-snapshot before posting this thread. aj-snapshot doesn't do what I want.
qjackctl comes with a GUI which I don't want to see at all. I want a daemon that can be run on a headless server.
aj-snapshot has a -d or --daemon option and would seem to me to be best option for headless server
only other way i used to manage JACK connections was with 'jack_connect' and 'jack_disconnect' commands
but that would require more additional scripting for features already in aj-snapshot or additional functionality you would want
agree qjackctl isn't a good option for headless server
but with a desktop environment, there is option to just have it in system tray
and there is also 'jack-select' package for systray icon that can switch between qjackctl profiles
- milkii
- Established Member
- Posts: 477
- Joined: Tue Jan 05, 2016 9:08 am
- Location: Edinburgh
- Has thanked: 92 times
- Been thanked: 91 times
- Contact:
Re: Does anyone write a python JACK patchbay customized for one's own setup?
some other options in the Routing and Routing snapshot sections on https://wiki.thingsandstuff.org/Audio#Routing
they/them ta / libreav.org / wiki.thingsandstuff.org/Audio and related pages / gh
Re: Does anyone write a python JACK patchbay customized for one's own setup?
Regular expression matchnikgnomicradio wrote:what do you require that is lacking from aj-snapshot?
Parser pattern match
Glob pattern match
Those are only available in source codes.
It also lacks the ability to selectively prohibit certain connections.