Synth.play({
p = Plug.ar(0,0);
});
//impulse network part (start first, before synthesis)
(
var nodes;
OSCPort.closeAll;
nodes = OSCNode.tree([
[\hello, { "hello you".postln; } ],
[\click, { p.gate } ]
]);
OSCInPort.new(55555, nodes);
n = [\julian, \john, \ianmike, \pavellloyd, \free];
x = ["192.168.0.120", "192.168.0.116","192.168.0.93","192.168.0.122","192.168.0.123"];
x = x.collect({ arg ip;
OSCOutPort.new(55555, ip);
});
f = { arg who, message;
x.at(n.indexOf(who)).send(message);
};
)
f.value(\julian, "/hello");
****
/*authors so far: jeleni, jrh */ |