[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] clientID and Pbind



It's fine here. Maybe it's your build?

t = Server(\local1, NetAddr("localhost", 57110), clientID: 1);

Server.default = t;

SynthDef(\dontWork, {|out = 0, sustain = 0.1|
       Out.ar(0, FSinOsc.ar(800) * Line.ar(0.125, 0, sustain, doneAction:2));
}).memStore;

p = Pbind(\instrument, \dontWork, \sustain, Pseries(0.01, 0.01, 100), \dur, 0.1).play;

Nodes play as expected. queryAllNodes shows high node IDs, expected for a nonzero client ID.

NODE TREE Group 0
   1 group
      67109982 dontWork
      67109981 dontWork

hjh

On Wed, Jul 29, 2009 at 12:59 PM, Till Bovermann <tboverma@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
hey,

// works:
s = Server(\local1, NetAddr("localhost", 57110), clientID: 0)

// does not work:
s = Server(\local1, NetAddr("localhost", 57110), clientID: 1)


Server.default = s
s.boot

SynthDef(\dontWork, {|out = 0, sustain = 0.1|
       Out.ar(0, FSinOsc.ar(800) * Line.ar(0.125, 0, sustain, doneAction:2));
}).store;

p = Pbind(
       \instrument, \dontWork,
       \sustain, Pseq((0, 0.01 .. 1)),
       \dur, 0.1
).play

// gives me a lot of
//              FAILURE s_new duplicate node ID

// anyone knows why?

whereas a simple task emulating the Pbind works as expected:

{
(0, 0.01 .. 1).do{|i|
       s.bind{
               Synth(\dontWork, [\sustain, i]);
       };
       0.1.wait;
}
}.fork



--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman