-
... Def.onTrig(this,func,value) } onPoll { |func,trig=10| if(trig.isNumber,{ trig = Impulse.kr(trig); }); ^trig.onTrig({ arg time,value; func.value(value) },this) } }
-
... onTrig(this, func, value) } onPoll { |func, trig=10| if(trig.isNumber, { trig = Impulse.kr(trig); }); ^trig.onTrig({ arg time, value; func.value(value) }, this) } }
-
... ; o.remove; // when done, you need to clean up the OSCresponderNode SendTrig.kr(Impulse.kr(1), 0, freq); // in synthdef */ //o= nil; //enable this for debugging //if (o == nil, {o = OSCresponderNode(s.addr, '/tr', { |time, resp, msg| msg.po ...
-
... // move mouse to right to turn source on again ( x = { var ratio = Demand .ar( Impulse .ar(3), 0, Dseq ([0, 2, 4, 5, 7, 9, 11, 12], inf ) ).midiratio; var hold = ( MouseX .kr(0, 1) > 0.1).poll; var src = SinOsc .ar(ratio * 200); var sig = ...
-
... f ( \reimsched , { |amp = 0.5, t_trig = 0| /* ring every 15 minutes */ var in = Impulse .ar(1/(15*60) , 0, 0.1) + t_trig; in = EnvGen .ar( Env ([0, 0.1, 0.1, 0], [0.01, 0.08, 0.01]*0.5), gate: in) * BrownNoise .ar; Mix ([ ReimFilter .ar( \m ...
-
... the Phases of all the Saws phaseArray = {TRand.ar( lo: 0.000, hi: 2.000, trig: Impulse.ar(0))}.dup(100); // Envelopes for Volume and LPF env = Env.adsr( attackTime: att, decayTime: dec, sustainLevel: sus, releaseTime: rel, curve: crv).ar(d ...
-
... ar(out, i), values, values], [1, 0], curve, 1); var sig = EnvGen.ar(env, gate + Impulse.kr(0), timeScale: fadeTime, doneAction: 2); ReplaceOut.ar(out, sig); }, [\ir, \kr, \ir, \kr]).add; SynthDef("system_setbus_control_" ++ i, { arg out = 0 ...
-
... signToggle always starts with 1, makes it easier to handle all cases initTrig = Impulse.ar(0); signToggle = Select.ar( Latch.ar(in > 0, initTrig), [in <= 0, in > 0] ); // need to start with index 0, thus '- 1' sampleCount = Sweep.ar(0, Samp ...
-
... al file if outPath.notNil var ir, sf; //synthesise the honourable 'Dan Stowell' impulse response ir = ((0..dur*44100).linlin(0,dur*44100,1,0.125).collect({ |f| f = f.squared.squared; f = if( f.coin ) { 0 } { f.squared }; f = if( 0.5.coin ) ...
-
... Out.kr(live_pos_bus, live_pos_sig); // update client with status SendReply.kr( Impulse.kr(15), "/track_status", [ gesture_rec_dur, gesture_phasor / (gesture_rec_dur * kr) ], track_id ); }).add;