-
Fold fold a signal outside given thresholds Fold.ar(in, lo, hi) Fold.kr(in, lo, hi) This differs from the BinaryOpUGen fold2 in that it allows one to set both low and high thresholds. in - signal to be folded lo - low threshold of folding. ...
-
fold2 bilateral folding BinaryOperator fold2(a, b) a fold2: b a.fold2(b) folds input wave a to +/- b { FSinOsc .ar(1000).fold2( Line .kr(0,1,8)) }.scope;
-
... ind ( \degree , Pseries (7, Pwhite (1, 3, inf ) * Prand (#[-1, 1], inf ), inf ).fold(0, 14) + Prand (#[[0, -2, -4], [0, -3, -5], [0, -2, -5], [0, -1, -4]], inf ), \dur , Pwrand (#[1, 0.5], #[0.8, 0.2], inf ) ), player, window; window = Wind ...
-
... e = 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 cousi ...
-
... 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 ...
-
... l clipping { b when a > b, -b when a < -b, else a } wrap2 .. bilateral wrapping fold2 .. bilateral folding excess .. residual of clipping a - clip2(a,b) (36)
-
... ( var melodies = ( lowMelody: Pseries (4, Prand (#[-2, -1, 1, 2], inf ), inf ).fold(-7, 11), highMelody: Pseries (14, Prand (#[-3, -2, 2, 3], inf ), inf ).fold(7, 18) ); p = Pbind ( \degree , Pnsym1 ( Pwrand (#[lowMelody, highMelody], [0.7 ...
-
... s [1, 2, 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 arrays ...
-
... 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, multi ...