-
... dVal.isNil or:{mulVal.isNil or:{freqVal.isNil}}, {^inval}); inval= ((counter*2).fold(-1, 1)*2-1*mulVal+addVal).yield; counter= counter+freqVal.reciprocal%1; }; ^inval; } } PLFPulse : Pattern { var <>freq, <>iphase, <>width, <>mul, <>add, <> ...
-
... / value. Any paramter can be replaced by a preexisting variable clipped/wrapped/folded to the high and low values. // in [\freq, [1,44100],[200,1600]], the first set of values are the clip range for a UGen input; the second // set of ...
-
... 3] ⧉ ✔ returns: [ 11, 22, 33 ] ⧉ ✔ adverb 'f' Another adverb is 'f' which uses folded indexing instead of wrapped: [10, 20, 30, 40, 50] +.f [1, 2, 3] ⧉ ✔ returns: [ 11, 22, 33, 42, 51 ] ⧉ ✔ adverb 't' The table adverb 't' makes an array of ...
-
... r tempo.. fr = SinOsc.kr((modH * tempo), [0, 0.4]).exprange(0.5, 3).madd(freqH).fold(20, 19000); RHPF.ar(in, fr, rqH) }, 1, [ \bpm, [20, 360, \exp], \rqH, \rq, \modH, [0, 32, 5, 1/1000], \freqH, \freq, ] ); ProxyChain.add3( '5LPF', \filterI ...
-
... vePan = Lag.kr(pan, 0.05); //dur arrives as the wall-clock length (bend already folded in by SamplerQuery), //so the envelopes run on plain wall time — no reciprocal compensation. var skwgen = EnvGen.kr(skwctl, 1, 1, 0, timeScale: antiClipE ...
-
... rp : Warp { /* segmented Warp creates an env inside if not provided with one // fold in the center: x = SegWarp([0,1,0]); x.map( 0.5 ); // -> 1 x.map( [0,1] ); // -> [0,0] x.map( 0.25 ); // -> 0.5 // format of input array: // [ [ value, pos ...
-
... on ExponentialWarp EZNumber FaderWarp Filter FilterPattern Finalizer FlowLayout Fold FrameInspector FreeSelfWhenDone FuncFilterPattern FuncStream FuncStreamAsRoutine FunctionDefInspector GetFileDialog GetStringDialog Gradient GraphBuilder H ...
-
... ciprocal, etc.), binary (+, -, *, /, **, min, max, etc.) and n-ary (clip, wrap, fold, linlin, linexp, etc.) operators are all valid with patterns. // Random integers, 1-5 Pwhite(1, 5, inf).asStream.nextN(10); // Random integers 1-5, multipl ...
-
... temperature: imuvals = imuvals.collectInPlace { |val| (val + 0.2.rand2 * 0.95).fold2(8.0).round(0.01) }; tempval = if (ev.dt.coin) { tempval = rrand(40, 60) }; // imuvals.round(0.001).postln; // map backwards to get realistic raw values: i ...
-
... p(lo, hi) Wraps the receiver in a Clip UGen, clipping its output at lo and hi . fold(lo, hi) Wraps the receiver in a Fold UGen, folding its output at lo and hi . wrap(lo, hi) Wraps the receiver in a Wrap UGen, wrapping its output at lo and ...