qjackctl icon indicating copy to clipboard operation
qjackctl copied to clipboard

On-the-fly patchbay activation from command line

Open fpesari opened this issue 5 years ago • 7 comments

The patchbay is very useful for live performance, however patchbay profiles can be activated only via the GUI, which makes it hard to automate via scripting.

It would be nice if QjackCtl offered a way to activate patchbays on the fly, without restarting the JACK server.

I'm not asking to change the current -a option if that means breaking some people's current setups, but maybe a new option like this:

qjackctl --patchbay-profile=Song1.xml

would be very, very useful to all people who make their own live setups without relying on DAWs.

Thank you for reading :smile_cat:

fpesari avatar Aug 06 '19 18:08 fpesari

as you might know qjackctl is a GUI interface and it will be always like so... forever :) actually you don't need to restart the jack-server to switch over patchbay profiles: you just select/load one and activate it, but yes only from the GUI... as better suited for the command-line and/or scripting there are alternatives out there like jack.plumbing, perhaps... cheers

rncbc avatar Aug 06 '19 19:08 rncbc

as you might know qjackctl is a GUI interface and it will be always like so... forever :) actually you don't need to restart the jack-server to switch over patchbay profiles: you just select/load one and activate it, but yes only from the GUI... as better suited for the command-line and/or scripting there are alternatives out there like jack.plumbing, perhaps... cheers

Yes, I know qjackctl is a graphical program, but this feature would only use things which already present, especially the comfortable and already widespread Patchbay XML format. But if it's troublesome to implement, I understand!

fpesari avatar Aug 06 '19 20:08 fpesari

Yes, I know qjackctl is a graphical program, but this feature would only use things which already present, especially the comfortable and already widespread Patchbay XML format. But if it's troublesome to implement, I understand!

nope, not that troublesome, in fact it may-be feasible from the command line alright--assuming the single/unique instance option is set and/or through the native d-bus interface as a new method (eg. "active-patchbay" with the path to the xml profile as a string argument perhaps).

rncbc avatar Aug 07 '19 19:08 rncbc

hopefully implemented in https://github.com/rncbc/qjackctl/commit/e76e58e

please check it out, test && tell cheers

rncbc avatar Aug 14 '19 18:08 rncbc

Tested on Debian, works just fine. Thank you!!!

fpesari avatar Aug 15 '19 07:08 fpesari

Sorry, i'm just a simple musician but i'll be glad to enjoy your trick :-) How to do it practicly (if you explain how to read and how to enforce the informations on the present page it's even better, so i learn)? I also would like to activate the patchbay at session startup. Thanks!

binjch avatar May 27 '21 20:05 binjch

from the command line, works even if it's already running: qjackctl --active-patchbay=/path/to/patchbay-profile.xml

rncbc avatar May 28 '21 09:05 rncbc