-
Pwhite random values with uniform distribution superclass: Pattern Pwhite(lo, hi, length) lo, hi lower and upper boundary of values (default: 0.0 and 1.0) length number of values produced (default: inf) // example ( var a; a = Pwhite (0.0, ...
-
... ream will be output in turn. Ppatlace(list, repeats) // example p = Ppatlace ([ Pwhite (1, 5, 5), Pgeom (10, 1.01, 10)], inf ); x = p.asStream; x.all; 5 // from Pwhite 10 // from Pgeom 4 // from Pwhite 10.1 // etc.... 5 10.201 4 10.30301 2 ...
-
... not create an extra synth. Examples p = Pmono ( \default , \dur , 0.2, \freq , Pwhite (1,8) * 100 ).play p.stop // multi channel expansion is supported: p = Pmono ( \default , \dur , 0.2, \freq , Pwhite (1,8) * 100, \detune , [0,2,5,1]).pl ...
-
... s reveals everything that is needed to reconstruct the operation on demand. p = Pwhite (1, 5, inf ) * 2; // a Pbinop p.operator // == '*' p.a // == a Pwhite p.b // == 2 In other words, the multiplication here produces not the result of a si ...
-
... bind ( // 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 )), \dur , Pstutter ( Pkey ( \n ), Pwhite (0.1, 0.4, inf )), \legato , 0.3 ).play; p ...
-
... le to the outside world as a pattern in itself; only its values appear. Pseq ([ Pwhite (0, 9, 5), Pwhite (10, 19, 5)], 1).asStream.all; When using Pspawn, a sub pattern must be returned directly into the event. To accomplish this, every suc ...
-
... indur but for value patterns ( p = Pbind ( \degree , Pif ( Ptime ( inf ) < 4.0, Pwhite (-4, 11, inf )), \dur , 0.25 ).play; ) Pstep(levels, durs, repeats): Repeat a 'level' value for its corresponding duration, then move to the next. Pseg(l ...
-
... 100), dur: 0.1, ]), Pbind (*[ #[type, id, msgFunc], Pkey ( \sControl ), dtime: Pwhite (0,0.2), decay: Pwhite (0.1,2), dur: 1, ]), Pbind (*[ instrument: \default , freq: Pwhite (1,16) * 100, dur: 0.2, db: 0 ]) ] ).play ) Example 1, loading ...
-
... Clock .default.tempo = 1; p = Pbind ( \degree , Pswitch (scaleSegments, Pseq ([ Pwhite (0, n-1, 4), Pwhite (0, n-1, 1).select( _ .odd)], inf )), \dur , 0.125 ).play; ) p.stop; Finite state machine (Pfsm, Pdfsm): A finite state machine is a ...
-
... ed ( Pbind ( \degree , Pn ( Pseq ((0..7)), inf , \step ), \mtranspose , Pgate ( Pwhite (0,5), inf , \step ), \dur , 0.2 ).play ) // Two different Pgates advanced at two different rates ( Pbind ( foo, Pn ( Pseq ((0..3)), inf , \step1 ), degr ...