-
+ Pattern { endless { arg default; ^if(default.isNil) { Prout { arg inval; var outval, stream, previous; stream = this.asStream; loop { outval = stream.next(inval); if(outval.notNil) { previous = outval } {Êoutval = previous }; inval = outv ...
-
... eArgs { ^[key, resetSource] } // storeOn { |stream| this.printOn(stream) } } // Proutine, but protects against nil being passed in // intended for routines that yield events // this is a workaround for EventStreamPlayer-stop // no longer ne ...
-
... eArgs { ^[key, resetSource] } // storeOn { |stream| this.printOn(stream) } } // Proutine, but protects against nil being passed in // intended for routines that yield events // this is a workaround for EventStreamPlayer-stop // no longer ne ...
-
... rentEnvironment }; ~asNotePattern = { // Pfunc is roughly 6.7 times SLOWER than Prout Prout({ |inval| ~repeats.do { ~index = 0; while { ~index < ~sequence.size } { inval = ~sequence[~index].embedInStream(inval); // output ~index = ~index + ...
-
... rentEnvironment }; ~asNotePattern = { // Pfunc is roughly 6.7 times SLOWER than Prout Prout({ |inval| ~repeats.do { ~index = 0; while { ~index < ~sequence.size } { inval = ~sequence[~index].embedInStream(inval); // output ~index = ~index + ...
-
... + 10 * 10 // many chairs, many tables. // lift calls to routines ( d = ( first: Prout { loop { "first".postln; 1.yield } }.asStream, second: Prout { loop { "second".postln; 0.3.yield } }.asStream, third: Prout { loop { "second".postln; 2.yi ...
-
... ependent on the productions. // using a random stream of letters as axiom ( k = Prout { 50.do { "abcde" .choose.yield } }; c = [ "a" -> "aa" , "b" -> "bb" , "c" -> "dd" , "d" -> "dxx" , "x" -> "y" ]; ) // 1 level of rewriting ( z = k.asStre ...
-
... ^this.value } asPattern { |initialValue| if (initialValue.isKindOf(Symbol)) { ^Prout({ |event| event[initialValue] !? { |v| this.value = v; }; loop { this.asControlInput.yield } }) } { ^Prout({ if (initialValue.notNil) { this.value = initi ...
-
... blockSize=0, completionFunc, maxLength=32; var pat; pat = if(blockSize == 0) { Prout.new { var item; while { item = iostream.readUpTo(delimiter); item.notNil and: { item != "" } } { (item ++ delimiter).asSymbol.yield; } } } { Prout.new { v ...
-
... #{ |inEvent| ~nextNotePattern.value(inEvent); ~updateNoteStream.value(inEvent); Prout({ |event| { event = ~noteStream.next(event).yield }.loop }); }; ~asPattern = #{ |inEvent| var out, argPairs; if(~fitFactors.notNil) { inEvent = inEvent.co ...