-
... (); ~params[\freq] = Pwhite(440, 880).asStream; Pbind( \type, \algaNote, \freq, Pfuncn({ ~params[\freq].next }, inf);, \dur, 0.05, \amp, 0.01 ).play; ~interp = { | param, what, ft = 1 | var blend = Pseg([0, 1, 1], [ft, inf], \lin); ~params[ ...
-
( ~dur = 1; p = Pbind( \degree, Pwhite(0, 7, inf), \dur, Pfuncn({ var a = ~dur.next; a.postln; a }, inf) ).playRescheduling(quant:1) ) p.reschedule(2); p.algaSchedAtQuantOnce(1, { "ye".postln; ~dur = 0.5 }) p.algaSchedOnce(0.1, { "ye".postl ...
-
... s (90, -1, 10), \dur , 0.5).asStream; z = Pseq ([2, 3, 1, 2], 1).asStream; ~a = Pfuncn ({ x.next(()) }, { z.next }); ~b = Pfuncn ({ y.next(()) }, { z.next }); PsymNilSafe ( Pseq ( "ab" , inf )).trace.play; // shorter with method 'symplay': ...
-
( ~dur = 1; ~stream = Pbind( \dur, Pfuncn( { ~dur.next }, inf), \degree, Pseries(0, 1) % 20 ).asStream; ~condition = Condition(false); ~clock = TempoClock.default; ~routine = Routine({ loop { ~player !? _.stop(); // stop the old one, if the ...
-
... \wins, \same, \wins]) a.table a.next(1); a.class; a.inspect; a.value; a = Pseq([Pfuncn({ |event| event.copy.put(\val, 1.0.rand) }, 2), Pfuncn({ |event| event.copy.put(\val, event[\max].rand) }, 2)], inf); x = a.asStream; x.next((max: 100, z ...
-
... if({ ^repeats * patLen }, { ^inf }); } } + Pfin { estimateLength { ^count } } + Pfuncn { estimateLength { ^repeats } } // no good way to estimate # of events for Pfindur, Pstutter, a few others // maybe I'll look at them later // support fo ...
-
... if({ ^repeats * patLen }, { ^inf }); } } + Pfin { estimateLength { ^count } } + Pfuncn { estimateLength { ^repeats } } // no good way to estimate # of events for Pfindur, Pstutter, a few others // maybe I'll look at them later // support fo ...
-
... ype, \dirt, \s, Pn(Plazy { var n = clumps.choose; postln(join(n, " ") ++ "\n"); Pfuncn({ n.choose }, 2 ** rrand(6, 9)) }), \cut, Prand([1, 2, 3], inf), \n, Pwhite(0, 20, inf), \speed, Pbrown(1, 1.2, 0.01), \amp, Pwhite().linexp(0, 1, 0.001, ...
-
... t values of an event stream we must pass an empty event as arg '.next(())' ~a = Pfuncn ({ ~as .next(()) }, { ~ar .next }); ~b = Pfuncn ({ ~bs .next(()) }, { ~br .next }); // define sequence ~p = "ab" ) p = PLseq ( \p ).symplay // change rep ...
-
... nodeEventKeys[event[\defIndex]] = \singleSynthTrigger; }; ~asPattern = { Pseq([ Pfuncn({ // first, initialize node arrays var latency; (~nodes.size == 0).if({ // first event for each index must be to play the node, // then notify me ~nodeEv ...