-
... c,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.fillColor= Color.grey(0, cnt.fold(0, 500)/10000); Pen.fillRect(Rect(0, 0, width, height)); world.objects.do{|o| world.objects.do{|oo| var dist= o.loc.distance(oo.loc); if(dist<minDist, { Pe ...
-
... loat pow reciprocal squared isZero floor ceil frac trunc round roundUp mod wrap fold do reverseDo Examples Basic operations Comparisons Sorting Continued fractions Stern-Brocot numbers Conversion between Rational and Float Sound Example (ex ...
-
... the following modes (Symbol): 'clip' (default): clip values outside fromRange 'fold': fold values outside fromRange 'wrap': wrap around values outside fromRange 'excess': map values outside the fromRange to min and max and return center va ...
-
... = PV_BinScramble(chain, 0.05, 0.1, 1.0 ); noise = IFFT(chain); noise = noise.fold(-0.5, 0.5); combs = Mix( [ CombL.ar(noise, 0.1, SinOsc.kr(tardRate * 0.9966, 0.1).range(0.00032, 0.00028) * 3.4, 0.4, 0.06), CombL.ar(noise, 0.1, Si ...
-
... ld dimension //invert vel vel.put(i,vel[i]*(1-damping).neg); ssObj.vel_(vel); //fold loc loc.put(i,l.fold(arrayDim[i]/2.neg,arrayDim[i]/2)); ssObj.loc_(loc); } } { //z coordinate only defined in range (0..depth) if( l > (arrayDim[i]) or:{l< ...
-
... t Tests if a signal is within a given range. Source: Trig.sc Subclasses: Clip , Fold , Schmidt , Wrap See also: InRect , Schmidt Description If lo ≤ in ≤ hi , output 1.0, otherwise output 0.0. Class Methods InRange. ar ( in , lo: 0.0 , hi: ...
-
... of the transfer function equals 0 at the borders. See also: Smooth Clipping and Folding , SmoothClipQ , SmoothFoldS , SmoothFoldQ , SmoothFoldS2 , SmoothFoldQ2 Class Methods *ar (in, lo, hi, amount, delta) *kr (in, lo, hi, amount, delta) in ...
-
... of the transfer function equals 0 at the borders. See also: Smooth Clipping and Folding , SmoothClipS , SmoothFoldS , SmoothFoldQ , SmoothFoldS2 , SmoothFoldQ2 Class Methods *ar (in, lo, hi, amount, delta) *kr (in, lo, hi, amount, delta) in ...
-
... ; usr= UserView(win, Rect(0, 0, width, height)); usr.drawFunc= { var a= sin(cnt.fold(0, 100)/2pi).linlin(-1, 1, 0.01, 1); var b= sin(cnt.fold(0, 90)/2pi).linlin(-1, 1, 0.1, cnt.fold(0, 50)/25); var rf= RedFingerprint(Wavetable.sineFill(256, ...
-
wiard noise ring variation using a ringbuffer instead of bitshifting, language implementation (task-based) by lfsaw (LFSaw) Code
... aints. //"+++++++ change! % >> ".postf(item); item = (item + step.xrand2).fold(min, max); item; //.postln; }; rbuf.add(item); item; // return (altered) item }; ( Tdef(\steppr, { var midinote; loop{ midinote = q.s ...