-
... asPoint; sig = UIn.ar(0); freq = (100000 / ( point.rho * \amount.kr(1).cubed )).clip(0,100000); sig = OnePole.ar( sig, ( -2pi * (freq / SampleRate.ir) ).exp ); UOut.ar( 0, sig ); }).category_( \filter ) .prepareArgsFunc_({ |argPairs| var po ...
-
... inputs) examples of n-ary operators are: blend, linlin, linexp, explin, expexp, clip, fold, wrap. See also: Pbinop , Punop , NAryOpFunction // example ( var a; a = Pnaryop ( \wrap , Pseries (0, 1, 12), [3, 7]); a.asStream.all; ) // this is ...
-
... g = 0.03; var outsig; // limit cutoff freq range and smooth changes lpHz = lpHz.clip(5.0, 20000.0).lag3(slewFilter); hpHz = hpHz.clip(5.0, 20000.0).lag3(slewFilter); outsig = in * gain.lag(slewGain); outsig = DelayC.ar( outsig, maxdelaytime ...
-
... hTo( baseStep / morphState.max(baseStep)); morphState = (morphState - baseStep).clip(0.0, 1.0); ev[\dt].wait; }; ev[\doneFunc].value; }); } addSet { |name, values, toDisk=false, toTop| var index; name = name ?? Date.getDate.stamp; name = th ...
-
... var overflow = (allNewKeys.size - numItems).max(0); keysRotation = keysRotation.clip(0, overflow); newKeys = allNewKeys.drop(keysRotation).keep(numItems); if (prevState[\cmdLine] != newState[\cmdLine]) { cmdLineView.value_(newState[\cmdLine ...
-
... scale ) * LFNoise1.kr(0.5).range(-45, -30).dbamp; input = mallet + (sing_switch.clip(0, 1) * sing); sig = DynKlank.ar(`[ [ (first = LFNoise1.kr(0.5).range(2424, 2444)) + Line.kr(20, 0, 0.5), first + LFNoise1.kr(0.5).range(1,3), LFNoise1.kr( ...
-
... (min,max,0,1)*contrast; //- ((1-contrast)/2); val = (color*val).floor.asInteger.clip(0,255); Integer.fromRGBA(val[0],val[1],val[2],255); }); image.pixels_(rgbs) ^image } asSCImageBi{ |rect, hsize=100, res = 0.1, contrast = 1, color1 = #[247 ...
-
... .linlin(0, width, dep.neg, dep) ); }); //--render Pen.fillColor= Color.grey(dep.clip(0, 1), 0.75); Pen.fillOval(Rect.aboutRedObject3D(o, ss, ff)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; })
-
... * rHum) + c1; humidity = tempC * (t1 + (t2*rHum)) + rhlin; humidity = humidity.clip( 0.1, 100 ); } calcTempC{ tempC = rTemp * d2C; tempC = tempC + d1C; } calcTempF{ tempF = rTemp * d2F; tempF = tempF + d1F; } // from someone's arduino code ...
-
... .linlin(0, width, dep.neg, dep) ); }); //--render Pen.fillColor= Color.grey(dep.clip(0, 1), 0.75); Pen.fillOval(Rect.aboutRedObject3D(o, ss, ff)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; })