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

[sc-users] NodeProxy fails to play to specified group



Hi -

NodeProxy.play (inherited from BusPlug class) has a "group" argument,
but it doesn't seem to work. Here's an example:

(
g = Group.new(s, \addToTail);

("Group 'g' is "++g.nodeID++" on "++g.server.name++" server").postln;

p = NodeProxy.audio(s, 1);

s.queryAllNodes;

p.source = {|t_trig=0, x=1, y=1|
	PinkNoise.ar(0.05) +
	SinOsc.ar(900 * x, 0, 0.1 * EnvGen.ar(Env.perc(0.0001, y), t_trig));
};

Task{
	1.0.wait;
	// This line shouldn't be required - but it is: 	
	// p.group_(g);
	p.play(0, 1, g, addAction:\addToTail); // Note the group argument
	("NodeProxy should now be playing on group #"++g.nodeID
			++" on "++g.server.name).postln;
}.play;


)

g.set(\t_trig, 1); // Doesn't trigger - NodeProxy isn't playing here
p.group.set(\t_trig, 1); // Does trigger. The nodeID shows that it's a
different group than expected

---------------------------------------------------------------

Uncommenting the "p.group_(g)" line forces the NodeProxy to take
notice of the desired group. But this shouldn't be needed. Should it?

Best
Dan