-
... value, pattern) Pset sets a value in an event stream. It acts like one key in a Pbindf ( var a, b; a = Pset (\freq, 801, Pbind ( \dur , 0.5)); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) Pset overrides incoming values: ( var a, ...
-
... Osc .ar(freq), pan, env)) }).add; ) ( a = Plambda ( Pseq ([ Pfindur (5, Ppar ([ Pbind ( \note , Plet ( \x , Prand ([1, 5, 1, [10, 14]], inf )), \dur , 8/3, \pan , -1), Pbind ( \note , Plet ( \y , Pseq ([5, 3, 2, 0, [0, 5, 6, 9]], inf )), \d ...
-
... attern Pkey simplifies backward access to values in an event being processed by Pbind or another event pattern. *new(key) The key is the name of the event variable to read from. // \b should thus take twice the value of \a in each event: p ...
-
... er it has been passed to the stream, use Padd ( var a, b; a = Paddpre ( \x , 8, Pbind ( \dur , 0.5)); x = a.asStream; 9.do({ x.next( (\x:4) ).postln; }); ) Paddpre does not override incoming values: ( var a, b; a = Paddpre ( \freq , 302, Ps ...
-
... ue after it has been passed down, use Pmul ( var a, b; a = Pmulpre ( \note , 2, Pbind ( \note , Pseq([1, 2, 3]))); x = a.asStream; 9.do({ x.next( Event .default).postln; }); ) Pmulpre does not override incoming values: ( var a, b; a = Pmulp ...
-
... has been passed to the stream, use Pset ( var a, b; a = Psetpre ( \freq , 801, Pbind ( \dur , 0.5)); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) Psetpre does not override incoming values: ( var a, b; a = Psetpre (\freq, 801, P ...
-
... eated notes with a different rhythmic value per new pitch // using Pstutter p = Pbind ( // making 'n' a separate stream so that degree and dur can share it \n , Pwhite (3, 10, inf ), \degree , Pstutter ( Pkey ( \n ), Pwhite (-4, 11, inf )), ...
-
... stream requires 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 direct ...
-
... ototype before running the supplied pattern. pattern: An event pattern (such as Pbind). cleanupFunc: Optional. A function to evaluate when the pattern is stopped, or when the supplied pattern runs out of values. For example, if you loaded a ...
-
... ighMelody: Pseries (14, Prand (#[-3, -2, 2, 3], inf ), inf ).fold(7, 18) ); p = Pbind ( \degree , Pnsym1 ( Pwrand (#[lowMelody, highMelody], [0.7, 0.3], inf ), melodies), \dur , Pwrand (#[0.25, 0.5], #[0.4, 0.6], inf ) ).play; ) p.stop; Rea ...