Hi
How do I start pd and *not* have it auto connect it's in and outs to jack?
BTW: If it matters I compiled from source (0.40-2) under linux (debian/etch).
Atte André Jensen wrote:
How do I start pd and *not* have it auto connect it's in and outs to
jack?
Maybe it's more than you want to get into, but you could use an aconnect script to disconnect them. For example, here is an aconnect script I use to start Jack, PD and SooperLooper, and hook them together (also disconnecting certain things which autoconnect and I don't want to be connected). Modify to your own liking, or use it to disconnect things you don't want.
d.
#! /bin/bash
jackd -d alsa -d hw -r 44100 -p 1024 -s & /usr/bin/qjackctl & sleep 5 ; /usr/local/bin/pd -jack -open /home/derek/pd/delnet/delaynet.pd:/home/derek/pd/echoplex_footswitches/midiswitches.pd & sleep 5 ; /usr/local/bin/sooperlooper -L /home/derek/pd/echoplex_footswitches/3loops.slsess -m /home/derek/pd/echoplex_footswitches/3loops.slb & sleep 5 ; /usr/local/bin/slgui & sleep 5 ; aconnect 'Pure Data':1 'sooperlooper_1':0 ; jack_connect alsa_pcm:capture_1 sooperlooper_1:common_in_1 ; jack_connect alsa_pcm:capture_2 sooperlooper_1:common_in_2 ; jack_disconnect alsa_pcm:capture_1 pure_data_0:input0 ; jack_disconnect alsa_pcm:capture_2 pure_data_0:input1 ; jack_disconnect alsa_pcm:capture_3 pure_data_0:input2 ; jack_disconnect alsa_pcm:capture_4 pure_data_0:input3 ; jack_connect alsa_pcm:capture_3 pure_data_0:input0 ; jack_disconnect pure_data_0:output0 alsa_pcm:playback_1 ; jack_disconnect pure_data_0:output1 alsa_pcm:playback_2 ; jack_disconnect pure_data_0:output2 alsa_pcm:playback_3 ; jack_disconnect pure_data_0:output3 alsa_pcm:playback_4 ; jack_connect pure_data_0:output0 alsa_pcm:playback_7 ; jack_connect pure_data_0:output1 alsa_pcm:playback_8 ; jack_connect sooperlooper_1:loop0_out_1 alsa_pcm:playback_1 ; jack_connect sooperlooper_1:loop0_out_2 alsa_pcm:playback_2 ; jack_connect sooperlooper_1:loop1_out_1 alsa_pcm:playback_3 ; jack_connect sooperlooper_1:loop1_out_2 alsa_pcm:playback_4 ; jack_connect sooperlooper_1:loop2_out_1 alsa_pcm:playback_5 ; jack_connect sooperlooper_1:loop2_out_2 alsa_pcm:playback_6
Derek Holzer wrote:
How do I start pd and *not* have it auto connect it's in and outs to
jack?
Maybe it's more than you want to get into, but you could use an aconnect script to disconnect them.
Totally doable and totally backwards. But if this really the way, I guess that's what I'll do.
Atte André Jensen wrote:
Totally doable and totally backwards. But if this really the way, I guess that's what I'll do.
Yes, I know! If you find another solution, I'm glad to hear it ;-)
d.
Atte André Jensen wrote:
Hi
How do I start pd and *not* have it auto connect it's in and outs to jack?
BTW: If it matters I compiled from source (0.40-2) under linux (debian/etch).
You could use QJackCtl and use patchbays for that. One way to accomplish this would be to use a Shell-Script like the ones I use (attached). For loading presets of QJackCtl is the -p option (man qjackctl).
"Prisons are needed only to provide the illusion that courts and police are effective. They're a kind of job insurance." (Leto II. in: Frank Herbert, God Emperor of Dune) http://thomas.dergrossebruder.org/
#! /bin/bash # mknoise v0.1 # starts jackd and qjackctl (if not already running) and programs from a # text file, each program in new line including options
# takes text file as argument: $ ./mknoise text_file
# jackd if pgrep jackd then true else /usr/bin/jackd -R -dalsa -r44100& > /dev/null 2>&1& fi
# QJackCTL if pgrep qjackctl then true else /usr/bin/qjackctl > /dev/null 2>&1& fi
while [ "$1" ]; do # generate musicapplist, cut options sed s"/ [-,a-z,A-Z,0-9,., ]*$//g" $1 | cat >> .musicapplist # loop for programs in text file cat $1|while read; do X="$REPLY" $X > /dev/null 2>&1& done shift done
#! /bin/bash # stopnoise v0.1 # stops programs, that have been invoked by mknoise # including jackd and qjackstl
# run with $ ./stopnoise
cat .musicapplist|while read; do X="$REPLY" killall $X done
rm .musicapplist
killall qjackctl killall jackd
I compiled from source
In that case could you not edit jack_connect_ports() to not autoconnect?
spider:/home/sources# diff pd-0.40-2/src/s_audio_jack.c pd-0.40-2-noauto/src/
168a169,172
#ifdef NO_JACK_AUTOCONNECT return (0); #endif /* NO_JACK_AUTOCONNECT */
Then you can export CFLAGS=-DNO_JACK_AUTOCONNECT and ./configure and make ; it works for me ...
-----Original Message----- From: pd-list-bounces@iem.at on behalf of Atte André Jensen Sent: Sat 6/30/2007 12:32 PM To: pure data list Subject: [PD] disable autoconnect with -jack
Hi
How do I start pd and *not* have it auto connect it's in and outs to jack?
BTW: If it matters I compiled from source (0.40-2) under linux (debian/etch).