






OSC Schweb
server:
(
var plug, schweb, nodes;
nodes = OSCNode.tree([
[\frequenzia, { arg node, f; plug.source = f.value }],
[\schweb, { arg node, f; schweb.source = f.value }]
]);
OSCPort.closeAll;
OSCInPort(32000, nodes);
scope({
plug = Plug.kr(200, 0.1);
schweb = Plug.kr(0, 0.1);
SinOsc.ar([plug, plug+schweb], 0, 0.1)
+ Pulse.ar(plug[1,2], 0.5, LFPulse.kr([1, 1+(schweb/100)], 0.1, 0.1))
})
)
epic:
// initialize the sending machine
var hostname;
hostname = "192.168.3.188"; // set this to the address of the receiving machine
z = OSCOutPort(32000, hostname);
)
(
z.send("/schweb", 10)
z.send("/frequenzia", 400)
)
(
Synth.play({
Task({
15.do({arg i;
var val;
wait(0.3);
val = ((100 + 2400.rand /(i+1)));
z.send("/frequenzia", val);
z.send("/schweb", val + 30.rand);
})
});
Plug.ar(0)
})
)