-
Pfuncn function pattern of given length superclass: Pattern Pfunc(func, repeats) Returns a stream that returns values from the func. func - stream function repeats - end after this number of times See also: Pfunc // example ( var a, b, c; a ...
-
... r x; var func = { "an error happened" .postln }; a = Pprotect ( Pseq ([1, 3, 3, Pfuncn ({ Error .throw }), 2]), func); x = Pbind ( \degree , a, \dur , 0.5).play; )
-
... 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 ...
-
... 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 ...
-
... 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 ...
-
... nc(nextFunc, resetFunc): Get the stream values from a user-supplied function. * Pfuncn(func, repeats): Get values from the function, but stop after 'repeats' items. * Proutine(routineFunc): Use the function like a routine. The function shou ...
-
... Pbrown Pconst PeakFollower Peep Pen Pevent PfadeIn PfadeOut Pfindur Pfset Pfunc Pfuncn Pfx Pgeom Pindex Plag PlayButton PlayerAmpGui PlayerBinop PlayerBinopGui PlayerEffectGui PlayerEfxFuncGui PlayerMixerGui PlayerPoolGui PlayerSpec PlayerU ...
-
... t in the Event. // schedule for a random number of beats after the next integer Pfuncn ({ thisThread .clock.beats.debug( "scheduled for" ); nil }, 1) .play(quant: ( nextTimeOnGrid: { |self, clock| clock.beats.roundUp(1).debug( "clock beats" ...
-
... pattern). Access to the environment depends on function-driven patterns: Pfunc, Pfuncn, Proutine, .collect, .select, .reject, and similar. The 'independent' flag specifies whether the environment will be kept separate for each stream made f ...