-
... unction resetFunc - function that is called when the stream is reset. See also: Pfuncn // example ( var a, x; a = Pfunc ({ exprand(0.1, 2.0) + #[1, 2, 3, 6].choose }, { \reset.postln }); x = a.asStream; x.nextN(20).postln; x.reset; ) // sou ...
-
... ( var x; var func = { "an error happened".postln }; a = Pprotect(Pseq([1, 3, 3, Pfuncn({ Error.new.throw }), 2]), func); x = Pbind(\degree, a, \dur, 0.5).play; ) ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classes/Pprotec ...
-
... \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 ...
-
... tep3add Pstep2add Pwhite Pbrown Pgeom Pseries Pbind Pevent Pnaryop Pbinop Punop Pfuncn Prout Proutine Pfunc The following lists all the Pattern classes where embedInStream uses the default Pattern-embedInStream. These create a new stream wh ...
-
... ram The parameter to retrieve from the AlgaPatternPlayer . repeats Similarly to Pfuncn , this represents the number of times to repeat the reading of the parameter. . read Arguments: func A Function representing the action to perform when r ...
-
... lug on next event q.stop; ⧉ ✔ Or the "...Plug" key can be sequenced. (Note that Pfuncn supplies the "...Plug" function. The function is not evaluated within the pattern, but rather put directly into the Event.) ( p = Pmsyn(Pmono( \pm, \midi ...
-
... 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 ...
-
... nf).linexp(0, 1, 100, 4000), dur: Pseq(durations, inf), bend: Pfuncn({ |x| if(x < (1/2), 0.4, 1) }, inf) <> Pkey(\dur), ]), Pbind(*[ instrument: \hoover, amp: -20.dbamp, midinote: 74, ...
-
... tartTime = startTime ? ( thisThread .clock.beats.debug( "time" )) } ), 1, 4) ++ Pfuncn ({ thisThread .clock.beats.debug( "finish time" ); ( thisThread .clock.beats - startTime).debug( "elapsed" ); nil }, 1)).play; ) ( // in this case, the p ...
-
... 4)), Pbind ( \mtranspose , Pn (2, 7)) ], inf ); c = Prand ([ Pbind ( \detune , Pfuncn ( { [0, 10.0].rand }, 5), \legato , 0.2, \dur , 0.2), Pbind ( \legato , Pseq ([0.2, 0.5, 1.5], 2), \dur , 0.3) ], inf ); Pchain (a, b, c).trace.play; ) p ...