-
... ke the Routine. . p Convert the routine to a (subclass of) Pattern . Returns: A Prout that (in response to asStream ) acts as a generator of independent copies of the original routine (the receiver of p ). Discussion: Any subclass of Patter ...
-
... ng its pattern with the new one. If the pattern is a function , Pdefn creates a Prout with this function, passing in the envir, if given(see below). Using *new(key) you can access the pattern at that key (if none is given, a default silent ...
-
... uncn(func, repeats) Get values from the function, but stop after repeats items. Prout(routineFunc) Use the function like a routine. The function should return values using .yield or .embedInStream . Additional List Patterns Pser(list, repea ...
-
... an also be used to simplify the coding of co-routines used in EventStreams (see Prout for an example). x = Ref(nil); z = obj.method(x); // method puts something in reference x.value.doSomething; // retrieve value and use it ⧉ ✔ Ref is also ...
-
... ong , Plorenz , Pmono , Pnaryop , Ppatmod , Ppoisson , Pprob , Pproto , Pquad , Prout , Pseries , Pstandard , Pstep , Pstep2add , Pstep3add , PstepNfunc , Pswitch , Ptime , Punop , Pwhite , Spawner … see all See also: Stream , FilterPattern ...
-
... Pbind( \scale, Pfunc({ k.scale }), \degree, Pseq([ Prand(k.scale.degrees, 20), Prout({ k.mode = \minor; 0.yield; }), Prand(k.scale.degrees, 20)], 1) ).play ) ⧉ ✔ helpfile source: /tmp/scquark_hs/TuningLib/HelpSource/Classes/Key.schelp link ...
-
... after some time) // wrap a pattern in a stop condition ( f = { |pat, condition| Prout { |inval| var stream = pat.asStream; var cleanup = EventStreamCleanup.new; var outval; while { outval = stream.next(inval); outval.notNil and: { condition ...
-
... ttern is rebuilt. . endless ( default ) From superclass: PatternProxy returns a Prout that plays the proxy endlessly, replacing nil with a default value (1 s. wait time). This allows to create streams that idle on until a new pattern is ins ...
-
... ombine patterns into new designs. (Custom behaviors can always be written using Prout.) Using patterns for sequencing might seem to be an advanced usage, but for many uses they are easier than the equivalent code written out step by step. T ...
-
... the source to nil . endless ( default ) From superclass: PatternProxy Returns a Prout that plays the task endlessly, replacing nil with a default value 1. This allows to create streams that idle on until a new pattern is inserted. Tdef as s ...