-
... ing its pattern with the new one. If the pattern is a function , Pdef creates a Prout with this function, passing in the envir, if given(see below). *new(key) Access the pattern at that key (if none is given, a default silent event is creat ...
-
... 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 ...
-
... pattern so that other wrappers like Pfindur can be used { |holder, driverEvent| Prout({ |inEvent| var event; loop { event = holder.getEvent(inEvent, driverEvent); inEvent = event.yield; } }) } => Func(\defaultStreamWrapper).subType_(\contra ...
-
... pattern so that other wrappers like Pfindur can be used { |holder, driverEvent| Prout({ |inEvent| var event; loop { event = holder.getEvent(inEvent, driverEvent); inEvent = event.yield; } }) } => Func(\defaultStreamWrapper).subType_(\contra ...
-
... l }; ~asStream = { Routine { |inval| ~embedInStream.(inval) } }; ~asPattern = { Prout(inEnvir { |inval| ~embedInStream.(inval) }) }; ~play = { |clock, protoEvent, quant| ~asPattern.().play(clock, protoEvent, quant) }; } => PR(\psetp2); // p ...
-
... 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 ...
-
... and the task routine is rebuilt. clear Set the source to nil endless 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 ...
-
... 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 ...
-
... l }; ~asStream = { Routine { |inval| ~embedInStream.(inval) } }; ~asPattern = { Prout(e { |inval| ~embedInStream.(inval) }) }; ~play = { |clock, protoEvent, quant| ~asPattern.().play(clock, protoEvent, quant) }; } => PR(\psetp2); // process ...
-
... 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 ...