-
... gation. . abs Absolute value a = { 10.rand - 10.rand }; b = a.abs; b.value; a = Pseries(3, -1.8, inf).abs; a.asStream.nextN(8); { a = LFNoise1.ar(1500); [a, a.abs] }.plot; ⧉ ✔ . asFloat a = { "123.471".scramble }; b = a.asFloat; b.value; ⧉ ...
-
... // interlace two streams ( var c = Ppatlace([ Pseq([0, 0, 0, 0, 8, 0, 8], inf), Pseries(1, 1, 32) ], inf) + 67; x = c.asStream; Routine({ loop({ Synth(\help_sinegrain, [\freq, x.next.midicps, \dur, 0.2]); 0.17.wait; }) }).play; ) // a more ...
-
... 40]) }), Plazy({ "pattern3.asStream".postln; Pseq([100, 200, 300]) }), Plazy({ Pseries(1, 1, 4) * 0.01 }) ).asStream; 150.do({ x.next.postln }); ) // if the last pattern loops it the combinatorics loop there: x = PstepNadd(Pseq([1, 2, 3]), ...
-
... = Pchain(~melody, ~rhythm).play; ~melody.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(- ...
-
... PS, e.g. by reevaluating its definition or wrapping it into a Function. p = PS(Pseries(), 5); // evaluate more than once p.asStream.all; // compare q = { PS(Pseries(), 5) }; // evaluate more than once q.value.asStream.all; // For recursive ...
-
... eams can be composed ( a = Pfunc { |x| x + 1.33 }; b = Pfunc { |x| x * 3 }; c = Pseries(1, 2, inf); ) // post some values from the composite streams: t = (a <> b).asStream; 10.do { t.value(10).postln }; t = (a <> b <> c).asStream; 10.do { t ...
-
... rom 1 - 12 // add ghost notes to hear grid ( Pdef(\euclid, Pbind( \hit, Peuclid(Pseries(1, 1, 12).stutter(4), 12, 48), \amp, Pkey(\hit) * 0.2 + 0.02, \instrument, \tic, \ringtime, 0.1, \freq, Pseq([[1000, 2000], 2000].clipExtend(12), inf), ...
-
... ", -1, 0, 0, \freq, rrand(600, 640)); 0.1.wait; }) }) ) ( Tdef(\x, { var x; x = Pseries(300, 20, 100).loop.asStream; loop({ s.sendMsg("/s_new", "pdef_grainlet", -1, 0, 0, \freq, x.next); 0.05.wait; }) }) ) ( Tdef(\x, { var x; x = Plazy({ Ps ...
-
... ent, \pgrain, \dur, dur.value / n, // now dur is dependant on outer dur. \freq, Pseries(1, 1, inf) * ratio + 1 * freq.value % 17000 ) }); ) // no recursion ( Pbind( \type, \phrase, \instrument, \sweep, \degree, Pseq((0..5),inf) ).play; ) // ...
-
... 5).modSeaside(-5).plot.plotMode_(\steps); // modSeaside Pbind(\note, modSeaside(Pseries(-15, 1, 25), -5), \dur, 0.2).play; // modSeaside with different divisors Pbind(\note, modSeaside(Pseries(-15, 1, 25), [3, -4, -5]), \dur, 0.2).play; // ...