-
... ng stream ends when that incoming stream ends ( var a, b; a = Psetpre ( \freq , Pseq ([401, 801], 2), Pbind ( \dur , 0.5)); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) sound example ( SynthDef ( \sinegrain , { arg out=0, freq=4 ...
-
... ent can also be a pattern: ( var a; a = Pnaryop ( \wrap , Pseries (0, 1, 12), [ Pseq ([3, 4, 5], inf ), Pseq ([9, 7], inf )]); a.asStream.all; ) // common cases: Pwhite (0, 1, inf ).linexp(0, 1, 200, 1000); Pwhite (0, 1, inf ).degreeToKey([ ...
-
... by passing it to the function ( var a, b; a = Pcollect ({ arg item; item * 3 }, Pseq(#[1, 2, 3],inf)); x = a.asStream; 9.do({ x.next.postln; }); ) the message collect returns a Pcollect when passed to a pattern ( var a, b; a = Pseq (#[1, 2, ...
-
... see also: Pcollect , Preject ( var a, b; a = Pselect ({ arg item; item != 2 }, Pseq(#[1, 2, 3],inf)); x = a.asStream; 9.do({ x.next.postln; }); ) the message select returns a Pselect when passed to a pattern ( var a, b; a = Pseq(#[1, 2, 3] ...
-
... see also: Pcollect , Pselect ( var a, b; a = Preject ({ arg item; item == 1 }, Pseq(#[1, 2, 3],inf)); x = a.asStream; 9.do({ x.next.postln; }); ) the message reject returns a Preject when passed to a pattern ( var a, b; a = Pseq (#[1, 2, 3 ...
-
... ams that idle on until a new pattern is inserted. // example a = PatternProxy ( Pseq ([1, 2, 3], inf )); x = Pseq ([0, 0, a], inf ).asStream; t = Task ({ loop({ x.next.postln; 0.3.wait }) }).play; a.source = Pseq ([55, 66, 77], inf ); a.sou ...
-
... stream returns nil whenever the first one of its streams ends. Pbind ( \freq , Pseq ([440,880]) ).play An event stream is created for a Pattern by sending it the asStream message. What Pbind does is to produce a stream which puts the value ...
-
... res an event to be passed in, often the default event is used: t = Pbind ( \x , Pseq ([1,2,3])).asStream; // pbind, e.g. creates a stream t.next( Event .default); t.next( Event .default); An event stream cannot be played directly with a clo ...
-
... ps per octave in the scale. The default is 12. ( Pbind ( \note , PdegreeToKey ( Pseq ([1, 2, 3, 2, 5, 4, 3, 4, 2, 1], 2), #[0, 2, 3, 6, 7, 9], 12 ), \dur , 0.25 ).play; ) ( var scales; scales = #[[0, 2, 3, 6, 7, 9], [0, 1, 5, 6, 7, 9, 11], ...
-
... lting stream ends when that incoming stream ends ( var a, b; a = Padd ( \freq , Pseq ([401, 801], 2), Pbind ( \freq, 100 )); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) sound example ( SynthDef ( \sinegrain , { arg out=0, freq= ...