-
... ke a function .do({ arg num; num.postln; }); ) ( // Use to filter a Pattern p = Pseries(0,1,100) .select(c); ) // Unfiltered Pseries(0,1,100).asStream.all.do({arg num; num.postln;}) // Filtered p.asStream.all.do({ arg num; num.postln }); ( ...
-
... .1, \i, \sin); // chars for the string, event patterns or events ~a = Pbind(\m, Pseries(60, 2, 4)) <> ~x; ~b = Pbind(\m, Pseries(80, -2, 8)) <> ~x; ~c = (i: \saw, m: [95, 96, 97], d: 0.8); // define sequence ~p = "aab" ) // symplay wraps in ...
-
... f a Pkey's result /equals/ another value, // be sure to use |==| p = Pbind( \a, Pseries(1, 1, inf), \b, Pif( Pkey(\a) == 2, "equals 2", "nope" ) ).asStream; p.next(()); // 'b' is always "nope" p = Pbind( \a, Pseries(1, 1, inf), \b, Pif( Pke ...
-
... ut, SinOsc.ar(freq, 0, env)) }).add; ) ( var a; a = Pif(Pfunc({ 0.3.coin }), Pn(Pseries(0.5, 0.1, 10)), Pn(Pseries(6, -0.1, 10))).asStream; { loop { Synth(\help_sinegrain, [\freq, a.next * 600 + 300]); 0.2.wait; } }.fork; ) ⧉ ✔ helpfile sou ...
-
... xample ( s = Server.local; Server.default = s; s.boot; ) ( x = Pbind(\midinote, Pseries(60, 1, 10), \dur, 0.5).asStream; y = Pbind(\midinote, Pseries(90, -1, 10), \dur, 0.5).asStream; z = Pseq([2, 3, 1, 2], 1).asStream; ~a = Pfuncn({ x.next ...
-
... ames, picking one value from whichever stream is chosen this cycle. This use of Pseries is essentially a random walk among scale degrees. It has more linear continuity than the equal distribution generated by Pwhite. Even though the higher ...
-
... t of chord intervals to a melody that's always on top. It's a compound pattern, Pseries(...) + Prand(...), where Pseries returns a single number and Prand returns an array. As with regular math operations, a number plus an array is an array ...
-
... randomly, according to weighted probabilities (same as list.wchoose(weights) ). Pseries(start, step, length) Arithmetic series (addition). Pgeom(start, grow, length) Geometric series (multiplication). Pwhite(lo, hi, length) Random numbers, ...
-
... , PSdup , PSrecur , PSloop Examples ( p = Pseq([ PS(Pseq((1..9), inf), 3), PS((Pseries() + 1) * 100, Pseq([1,2,3], inf)) ], inf); q = p.asStream; q.nextN(50); ) // ATTENTION: // It is important to remember that, differing from normal // Pa ...
-
... ethods Examples {MantissaMask.ar(Line.ar(-1, 1, 0.1))}.plot(0.1); PMantissaMask(Pseries(-1, 0.02, 100)).asStream.nextN(100).plot; //similar ⧉ ✔ helpfile source: /tmp/scquark_hs/UGenPatterns/HelpSource/Classes/PMantissaMask.schelp link::Clas ...