List Info

Thread: use jackd to route audio between two scsynth's




use jackd to route audio between two scsynth's
country flaguser name
United States
2007-03-06 10:10:44
Hello,

Apologies if this has been covered before, I haven't been
able to find  
it in the archives.

We have a dual processor Mac G5. We want to run two+
SuperCollider  
servers (scsynth), one on each processor, and route the
audio between  
them. We also need to run this remotely via ssh (i.e. not
jack pilot).  
I can't figure out how to make this work.

If I start jackd, I can select it as the audio device in one
server.  
If I try to select the same jackd in the second server, the
second  
server fails.

So how would I use jackd (via command-line) to connect two
or more  
scsynth's running on the same machine?

Thanks,
Brian


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el

Re: use jackd to route audio between two scsynth's
country flaguser name
United States
2007-03-06 10:17:20
On Tue, 2007-03-06 at 10:10 -0600, bwillkiecct.lsu.edu wrote:
> Hello,
> 
> Apologies if this has been covered before, I haven't
been able to find  
> it in the archives.
> 
> We have a dual processor Mac G5. We want to run two+
SuperCollider  
> servers (scsynth), one on each processor, and route the
audio between  
> them. We also need to run this remotely via ssh (i.e.
not jack pilot).  
> I can't figure out how to make this work.
> 
> If I start jackd, I can select it as the audio device
in one server.  
> If I try to select the same jackd in the second server,
the second  
> server fails.

either i am confused, or you are confused. a dual processor
G5 is not
"two servers". its a single server with two
processors. you run a single
jackd on that machine. then you run N jack clients on that
machine. the
clients will run at various times on the different
processors, but thats
not something under your control (unless you want to get
down and dirty,
and you don't 

jackdmp might be of interest here because of parallelism,
but notice
that as soon as you connect the two instances of scsynth to
each other,
there is no parallelism anymore and you cannot run them on
separate
processors at the same time.



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el

Re: use jackd to route audio between two scsynth's
country flaguser name
France
2007-03-06 10:23:38
Le 6 mars 07 à 17:17, Paul Davis a écrit :

> On Tue, 2007-03-06 at 10:10 -0600, bwillkiecct.lsu.edu wrote:
>> Hello,
>>
>> Apologies if this has been covered before, I
haven't been able to  
>> find
>> it in the archives.
>>
>> We have a dual processor Mac G5. We want to run
two+ SuperCollider
>> servers (scsynth), one on each processor, and route
the audio between
>> them. We also need to run this remotely via ssh
(i.e. not jack  
>> pilot).
>> I can't figure out how to make this work.
>>
>> If I start jackd, I can select it as the audio
device in one server.
>> If I try to select the same jackd in the second
server, the second
>> server fails.
>
> either i am confused, or you are confused. a dual
processor G5 is not
> "two servers". its a single server with two
processors. you run a  
> single
> jackd on that machine. then you run N jack clients on
that machine.  
> the
> clients will run at various times on the different
processors, but  
> thats
> not something under your control (unless you want to
get down and  
> dirty,
> and you don't 
>
> jackdmp might be of interest here because of
parallelism, but notice
> that as soon as you connect the two instances of
scsynth to each  
> other,
> there is no parallelism anymore and you cannot run them
on separate
> processors at the same time.
>
>


The fact you cannot launch two instances of scsynth can be
caused by  
jack client name conflicts: that is trying to open 2 jack
clients  
that use the same name.

Stephane
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el

Re: use jackd to route audio between two scsynth's
user name
2007-03-06 10:39:50
On Tue, Mar 06, 2007 at 11:17:20AM -0500, Paul Davis wrote:

> > If I start jackd, I can select it as the audio
device in one server.  
> > If I try to select the same jackd in the second
server, the second  
> > server fails.
> 
> either i am confused, or you are confused. a dual
processor G5 is not
> "two servers". its a single server with two
processors. you run a single
> jackd on that machine. then you run N jack clients on
that machine. the
> clients will run at various times on the different
processors, but thats
> not something under your control (unless you want to
get down and dirty,
> and you don't 

The term 'server' here refers to scsynth, the 'server' part
of SC.
The problem is probably that the two instances of scsynth
use the
the same name as a jack client, and jackd will refuse the
second.
There *should* be an option to set the name, but I can't
find it :-(

One way to make this fully automatic would be to use the
server
UDP/TCP port number as a suffix to the name - the port
numbers have
to be different even without jackd.

But as Paul has remarked, unless you use jackdmp instead of
jackd
the audio threads of the to servers will never run
concurrently.

-- 
FA

Lascia la spina, cogli la rosa.


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el

Re: use jackd to route audio between two scsynth's
user name
2007-03-06 10:56:43
On 3/6/07, Fons Adriaensen <fonskokkinizita.net> wrote:
>
> The term 'server' here refers to scsynth, the 'server'
part of SC.
> The problem is probably that the two instances of
scsynth use the
> the same name as a jack client, and jackd will refuse
the second.
> There *should* be an option to set the name, but I
can't find it :-(
>
> One way to make this fully automatic would be to use
the server
> UDP/TCP port number as a suffix to the name - the port
numbers have
> to be different even without jackd.

If you really want to run two instances of JACK, you may be
able to finesse the problem by setting the
$JACK_DEFAULT_SERVER
environment variable.  See: man jackd.

-- 
 joq

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el

Re: use jackd to route audio between two scsynth's
user name
2007-03-06 12:34:49
On Tue, Mar 06, 2007 at 12:12:18PM -0600, bwillkiecct.lsu.edu wrote:

> So the next question is how to set the client name. I
presume that  
> should be a jackd option? 

No, an scsynth option. Jackd doesn't know about any clients
when
it is started. Every jack client should have this option
unless
it is absolutely impossible to run two instances of the
client at
the same time.

> I'll try jackdmp again and post the results.

This will very probably result in the same problem.
It will remain until scsynth provides an option to set
its jack-client name, or selects a unique name by itself.

-- 
FA

Lascia la spina, cogli la rosa.


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el

Re: use jackd to route audio between two scsynth's
user name
2007-03-06 12:41:22
On Tue, Mar 06, 2007 at 10:56:43AM -0600, Jack O'Quin
wrote:

> If you really want to run two instances of JACK, you
may be
> able to finesse the problem by setting the
$JACK_DEFAULT_SERVER
> environment variable.  See: man jackd.

If I understand the OP well, he wants to run not two jackd
but
two instances of scsynth using the same jackd. Then the
client
names must be different, but scsynth doesn't provide the
option
to set the name.


-- 
FA

Lascia la spina, cogli la rosa.


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el

Re: use jackd to route audio between two scsynth's
country flaguser name
United States
2007-03-06 12:12:18
Quoting Fons Adriaensen <fonskokkinizita.net>:

> The term 'server' here refers to scsynth, the 'server'
part of SC.
> The problem is probably that the two instances of
scsynth use the
> the same name as a jack client, and jackd will refuse
the second.
So the next question is how to set the client name. I
presume that  
should be a jackd option?

> There *should* be an option to set the name, but I
can't find it :-(
:-/

> One way to make this fully automatic would be to use
the server
> UDP/TCP port number as a suffix to the name - the port
numbers have
> to be different even without jackd.
Again, should this be a jackd option?

> But as Paul has remarked, unless you use jackdmp
instead of jackd
> the audio threads of the to servers will never run
concurrently.
In a reply to Paul, I mentioned that I had tried jackdmp.
When I tried  
to connect just one scsynth, both programs crashed.

I'll try jackdmp again and post the results.

Thanks,
Brian




------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el

Re: use jackd to route audio between two scsynth's
country flaguser name
United States
2007-03-06 14:23:40
Hi Stephane,

I am also on a PPC Laptop running OSX (for testing purposes,
 
eventually I plan to run all this on a dual g5)...

Between my email provider and the settings for this list I
can't get  
the replies correct; they keep going to individuals instead
of the  
list. I'll try to pay more attention.

Below is a reply I sent to Fons off-list.

Hi Fons,

I uninstalled jackdmp, reinstalled jackpilot. Then I ran
jackpilot  
(from the GUI) and
tried to start two scsynth's from the command-line. The
first one  
started with no problem. The second crashed
with the following error:

cannot read response from jack server (No such file or
directory)
AudioDeviceAddIOProc failed 560227702

#####################take 2#####################

I get the same results if I try it from within SCLang.

#####################take 3#####################

If I uninstall jackd, reinstall jackdmp, then run
jackpilotmp, I get  
the same results as
with jackpilot.

#####################take 4#####################

If, from the command-line I run:
%jackdmp -d 'coreaudio' -d 'Built-in Audio'

(and in another xterm)
%./scsynth -u 59110 -i 2 -o 2 -a 1024 -H 'Jack Router'

then in the first window (from jackdmp) I get:
JackEngine::XRun: client = scsynth was not run: state = 1

and from the second (from scsynth) I get:
JackActivationCount::Signal value = 0 ref = 3

#####################take 5#####################

If I run
%jackdmp -d 'coreaudio' -d 'Built-in Audio'

then from SCLang I create and boot the first server,
everything  
behaves as with takes 1, 2, and 3.

when I try to create a second server from within SCLang,
everything  
blows-up. In SCLang I
get the following:
start   UseSeparateIO?: 0
AudioDeviceAddIOProc failed 560227702
start audio failed.
RESULT = 256
ERROR:
server failed to start

and in the xterm window for jackdmp I get several copies
of:
JackEngine::XRun: client = scsynth was not run: state = 1
JackEngine::XRun: client = scsynth was not run: state = 2
JackEngine::XRun: client = scsynth was not run: state = 1
JackEngine::XRun: client = scsynth was not run: state = 2
JackEngine::XRun: client = scsynth was not run: state = 1
JackEngine::XRun: client = scsynth was not run: state = 1


Anythoughts are greatly appreciated.

Thanks,
Brian



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el

Re: use jackd to route audio between two scsynth's
country flaguser name
France
2007-03-06 14:38:50
Le 6 mars 07 à 21:23, bwillkiecct.lsu.edu a écrit :

> Hi Stephane,
>
> I am also on a PPC Laptop running OSX (for testing
purposes,  
> eventually I plan to run all this on a dual g5)...
>
> Between my email provider and the settings for this
list I can't  
> get the replies correct; they keep going to individuals
instead of  
> the list. I'll try to pay more attention.
>
> Below is a reply I sent to Fons off-list.
>
> Hi Fons,
>
> I uninstalled jackdmp, reinstalled jackpilot. Then I
ran jackpilot  
> (from the GUI) and
> tried to start two scsynth's from the command-line. The
first one  
> started with no problem. The second crashed
> with the following error:
>
> cannot read response from jack server (No such file or
directory)
> AudioDeviceAddIOProc failed 560227702

Well it actually does not crash... (at least here..) i get:

JackMachClientChannel::Close err = (os/kern) invalid name
AudioDeviceAddIOProc failed 560227702
start audio failed.

and the SC server just quits.

This is actually a jack client naming issue:

Thus if you simply copy scsynth and rename it
"scsynth1"

then

./scsynth1 -u 59110 -i 2 -o 2 -a 1024 -H 'Jack Router'

starts another SC server... et voila 2 different scsynth and
scsynth1  
running...


Stephane



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jackit-devel mailing list
Jackit-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el

[1-10] [11-20] [21]

about | contact  Other archives ( Real Estate discussion Medical topics )