-
... umOut = loOut + hiOut; // hard clip for peaks that escape equal-power-bandsplit SendReply.ar(sumOut.abs > 1.0, "/clipped", (0..sumOut.lastIndex)); sumOut.clip2(limit); }, 1, ( limit: [0.1, 1, \exp], gain: [0.5, 8, \exp], eqTilt: \pan, limTi ...
-
... ocalBuf(2048), in2, wintype: 1); var fc = FrameCompare.kr(chain1, chain2, 0.5); SendReply.kr(t_finTrig, 'fc_result', [fc]); FreeSelf.kr(t_finTrig); Out.ar(0, [in1, in2]); }).add; r = OSCresponderNode(nil, 'fc_result', {|t, r, msg, other| "F ...
-
... cate messages back to the client using one of two unit generators: SendTrig and SendReply . SendTrig is simpler and less flexible (it can send only a /tr message, and only one data value). SendReply allows you to name the message anything y ...
-
... .index,b.numChannels) }); imp = Impulse.ar(updateFreq); reset = Delay1.ar(imp); SendReply.ar(imp, "/" ++ name, ins.collect({ arg in,i; [ RunningSum.ar(in.squared, numRMSSamps), Peak.ar(in, reset).lag(0, 2) ] }).flat ); }).play(RootNode(serv ...
-
... mp = Amplitude.kr(sig).ampdb; amp = K2A.ar(amp); trig = amp >= thresh; SendReply.ar(Impulse.ar(50), 'trigVal', [trig]); }).add; w = Window.new("amplitude threshold tester", Rect(600, 250, 950, 220)).front; w.view.backgroun ...
-
... Resources.add(name, { functions.removeAt(replyID) }); this.makeResponders(cmd); SendReply.perform( UGen.methodSelectorForRate(rate), trig, cmd, args, replyID ); ^NamedControl.perform( UGen.methodSelectorForRate(rate), "sequencer_in_" ++ rep ...
-
... , options.numBuffers, dur, doneAction: 2).round(1); var trig = HPZ1.kr(bufnum); SendReply.kr(trig, 'bufscan', [ bufnum, BufFrames.kr(bufnum), BufChannels.kr(bufnum), BufSampleRate.kr(bufnum) ]); }.play(this); fork { (dur + 0.5).wait; resp.r ...
-
... ValuesDo({ |key, value| if (value == id) { instanceName = key; } }); // because SendReply allows for a list of values to be sent... restArgs = args.copyRange(3, args.size() -1); returnAddress.sendMsg("/analysis/"++instanceName, *restArgs); ...
-
... ); // tanh default var rms = (RunningSum.ar([d1, d2].squared, 512) / 512).sqrt; SendReply.ar(Impulse.ar(10), '/distHelpRms', rms); (d2 * 0.1).dup }.play; window = Window("rms", Rect(800, 200, 400, 150)).front; sliders = Array.fill(2, { Slid ...
-
... e: 0.01, releaseTime: decay); // this trigger (id==0) is to update the gui only SendReply.kr(Impulse.kr(10), '/amp', amp); // this trigger gets sent only when amplitude crosses threshold SendReply.kr(amp >= thresh, '/amptrig'); }).play(args ...