-
... s the value at index 0 y.wrapAt(4).postln; // this returns the value at index 1 foldAt(index) Same as at , but values for index greater than the size of the List will be folded back. y = List [ 1, 2, 3 ]; y.foldAt(3).postln; // this returns ...
-
... ) 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 the sa ...
-
... ATION is randomized via LFNoise1, borders are set with muldur, adddur. LFNoise1 folds to positiv with .abs, offset is added after, lfo is speed of LFNoise1. /// Env is randomized with PinkNoise /// MouseX is playbackrate, MouseY is po ...
-
... t, coef| coef * fb[i] + input }), 1, (delT[i] * scale - ControlDur.ir).fold(0.0, 1.0)) }; LocalOut.ar(LeakDC.ar(OnePole.ar(w, coef))); Out.ar(out, w.sum.tanh ! 2) }).add; { s.scope(2) }.defer }); ) ( s.make ...
-
... .kr(0.1); pos = \pos.kr(0.0); reverse = \reverse.kr(0.0); pos = (pos + reverse).fold(0,1); #numChannels, bufnum, rate, trigger, startPos, loop = BufSndFilePlayer.getArgs( Udef.numChannels, \soundFile, trigger, 0 ); rate = rate * \rateScale. ...
-
... .kr(0.1); pos = \pos.kr(0.0); reverse = \reverse.kr(0.0); pos = (pos + reverse).fold(0,1); #numChannels, bufnum, rate, trigger, startPos, loop = BufSndFilePlayer.getArgs( Udef.numChannels, \soundFile, trigger, 0 ); rate = rate * \rateScale. ...
-
... locitiesPatternRangeHi, val] ]); }; nk.nanoSliderElements[4].action= {|val| var fold= if(val<0.5, {val*2}, {1-(val-0.5*2)}); nk.sendOsc([ [\sCluster, \ampLfoDepth, val], [\sDrone, \ampLfoDepth, val], [\sFormant, \lagUp, fold], [\sFormant, \ ...
-
... ays on top of eachother // example: /* MultiPlot( [ (-10,-9..10), (-20,-18..20).fold(-10,10), { 3.0.rand2 } ! 20 ] ) */ MultiPlot { *new { |arrays, width = 600, height = 400, colors, background, hLinesAt, vLinesAt, linesAlpha = 0.5, discret ...
-
... dy.source = PmonoArtic(\default, \degree, Pseries(4, Prand(#[-1, 1], inf), inf).fold(-4, 11)); ~melody.source = Pbind(\degree, Pseries(4, Pwrand(#[-2, -1, 1, 2], #[0.3, 0.2, 0.2, 0.3], inf), inf).fold(-4, 11)); p.stop; ⧉ ✔ Pset and cousins ...
-
... LFNoise1, borders are set with mulclock, addclock, muldur and adddur. LFNoise1 folds to positiv with .abs, offset is added after. lfo1 and lfo2 are the speeds of LFNoise1. /// For more silent parts approach addclock to zero or make it n ...