You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
394 B
Python

NetAddr.localAddr;
thisProcess.openUDPPort(7771); // attempt to open 1121
thisProcess.openPorts; // list all open ports
n = NetAddr.new("127.0.0.1", 7771); // create the NetAddr
OSCFunc.trace(true); // Turn posting on
OSCFunc.trace(false); // Turn posting off
o = OSCFunc({ arg msg, time, addr, recvPort; [msg].postln; }, '/sc', n);
o.free; // remove the osc function when you're done