Page 1 of 1

loading default files for different programs at startup

Posted: Sun Jan 29, 2012 11:53 am
by didgewind
hi there, i am in the process of scripting the startup of different applications in my ubuntu natty. Up to now i automated the procces of starting the apps and make jack connections, but still i have to load config files manually for the following programs:

- jack mixer
- hydrogen
- jack rack
- hexter

and some others. When I say 'load config files' i mean, for example, opening a file with saved inputs and outputs in jack mixer. The idea is being able to set up my computer and get it running as quickly as possible.

and i'm looking for documentation in the web but there is so little documentation about some programs or i am so ill-suited looking for it...

any help about it?

xxx

Re: loading default files for different programs at startup

Posted: Sun Jan 29, 2012 8:22 pm
by autostatic
Hello didgewind,

Did you check Jack Session or Ladish? Those are JACK session managers that should do what you describe.

Best,

Jeremy

Re: loading default files for different programs at startup

Posted: Thu Feb 02, 2012 8:55 am
by didgewind
no, but i will.

tx

Re: loading default files for different programs at startup

Posted: Thu Feb 02, 2012 9:13 pm
by varpa
You might want to checkout aj-snapshot which can save/restore Jack/Alsa/Midi connections. Useful in scripts.

Re: loading default files for different programs at startup

Posted: Mon Feb 20, 2012 11:46 pm
by francmulloy

My experience up to now

Posted: Tue Feb 21, 2012 10:25 am
by didgewind
ok, so here's what i got up to now. The environment is an asus eee-pc 901 with 2gb ram and Intel(R) Atom(TM) CPU N270 @ 1.60GHz. I've got 3 jackrack running, 2 jack mixer, 1 hydrogen, 1 sooperlooper, 1 hexter synth and 1 zynaddsubfx. The aim of this configuration is having all applications running with the jack rack and jack mixer instances started with specific configuration files and all connections wired.

i also use en wire korg's nanos (control, key and pad).

the quickest and most stable way working for me up to now is using patchbay to keep the connections, ladish to load zynaddsubfx and the jackrack instances with their specific configuration files and then running this script to load the rest of the apps:

Code: Select all

#!/bin/bash
hydrogen %F &
jack_mixer -c "/home/didgewind/audio-projects/jack mixer/master" &
sleep 5
jack_mixer -c "/home/didgewind/audio-projects/jack mixer/jr y sinte" &
/usr/bin/slgui &
jack-dssi-host hexter.so &
/usr/bin/patchage &
sleep 60
jack_disconnect ZynAddSubFX:out_1 system:playback_1
jack_disconnect ZynAddSubFX:out_2 system:playback_2
jack_disconnect Hydrogen:out_L system:playback_1
jack_disconnect Hydrogen:out_R system:playback_2
jack_disconnect hexter\ DX7\ emulation\ \(v0.6.2\):hexter\ DX7\ emulation\ \(v0.6.2\)\ out_1 system:playback_1
I tried to include the startup of both jack mixers in lash session but patchbay relies in the names of the different instances to rewire the connections, and thought we can start jackrack whith the name instance we desire, i think this is not possibe for jack mixer, so its instances are called jack_mixer, jack_mixer_1, jack_mixer_2... in start-up order, and the order of starting-up is not controllable with lash, so my jack mixer instances are started from the script (with a 3 seconds delay between one and the other so the first one to show is the one with the master controls, therefore its name will be jack_mixer and the second instance name, jack_mixer_1).

This way my startup way is the following:

1) running one script to start jack, lashd and lash_panel
2) loading lash session from lash panel to start the jack rack and the zynaddsubfx instances
3) running the above script to start the rest of the applications and disconnect the default connections for hydrogen, zynaddsubfx and hexter

any suggestion is welcome

Re: loading default files for different programs at startup

Posted: Tue Feb 21, 2012 5:54 pm
by varpa
As I mentioned above aj-snapshot can save/restore all Jack audio/midi connections with one command. Saves all those jack_disconnect lines in you script (hmm why are you disconnecting? Removing default connections?).

Re: loading default files for different programs at startup

Posted: Tue Mar 06, 2012 8:57 am
by didgewind
yep, don't need default connections for those apps to connect to system out.

tx 4 your help