-
... , you also need an object to receive the message and act on it. Usually this is OSCFunc or OSCdef . In this example, OSCdef filters messages not just on the name /bleep but also on the synth's ID. This way, you could have multiple triggerin ...
-
... num| var buf; buf = Buffer.alloc(server, numFrames, numChannels, nil, bufnum ); OSCFunc( { |msg, time, addr, recvPort| action.value( buf ); }, '/done', server.addr, argTemplate: [ '/b_alloc', buf.bufnum ] ).oneShot; this.addBuffer( buf ); ^ ...
-
... var server; node = node ?? { RootNode(Server.default) }; server = node.server; OSCFunc({ arg msg; var snapshot, parsed; if (dump) { msg.postln }; snapshot = TreeSnapshot(server, msg); { action.value(snapshot) }.defer; }, '/g_queryTree.repl ...
-
... r now emit deprecation messages, and will be removed after at least a year. Use OSCFunc or OSCdef instead. Speech is deprecated, and will be removed in 3.10. The rationale is that its audio output is independent of the server (severely limi ...
-
... server); nodes.add(server -> []); groups.add(server -> []); resps.add(server -> OSCFunc({arg msg, time, addr; var tag, nodeID, prevNodeID, nextNodeID, group, headNode, tailNode; #tag, nodeID, prevNodeID, nextNodeID, group, headNode, tailNod ...
-
... - (Undocumented class) OSCMessageDispatcher - The default dispatcher class for OSCFunc and OSCdef. OSCMessagePatternDispatcher - The default pattern matching dispatcher for OSCFunc and OSCdef. AbstractFunction - An object which responds to ...
-
... e:cmdName); }).play(RootNode(server), addAction:\addToTail); historyResponder = OSCFunc({ |msg| var peak, rms; msg = msg[3..].clump(2).flop; peak = msg[0]; rms = msg[1]; // { counter.value = peak.maxItem.ampdb.linlin(-60, 0, 0, 1) }.defer; ...
-
... librate } ); if(theChanger.value.size == 4, { // OSCresponderNode: t, r, msg // OSCfunc: msg, time, addr // for the future // oscResponderAction = { |t, r, msg, addr| oscResponderAction = { |msg, time, addr| if (this.rawOscInput) { minMax[0 ...
-
... .4); ~levelIndicator = LevelIndicator(~w, Rect(784, 530, 20, 239)); o = OSCFunc({arg msg; { ~levelIndicator.value = msg[3].ampdb.linlin(-40, 0, 0, 1); ~levelIndicator.peakLevel = msg[4].ampdb.linlin(-40, 0, 0, 1); }.defer; }, ' ...
-
... v, '/accxyz', currentEnvironment, inEnvir { |msg| ~smooth.(msg); }); // ~resp = OSCFunc(inEnvir { |msg| ~smooth.(msg) }, '/accxyz'); ~movingBuf = Array.fill(~windowSize, #[0, 0, 0]); ~sum = [0, 0, 0]; ~avg = [0, 0, 0]; ~index = 0; ~lastSend ...