-
... ttern (see Pdef ) *default a default source, if none is given. the default is a Pbind with resting notes of 1.0 beat duration source_(obj) set the source (a pattern). If a quantization is given, schedule this change to the next beat ( patte ...
-
... ll current Pdefs: PdefAllGui Overview: JITLib First Example s.boot; Pdef ( \x , Pbind ( \note , Pbrown (0, 6, 0.1, inf ))); Pdef ( \x ).quant = 0; // no waiting. Pbindf ( Pdef ( \x ), \dur , 0.03).play; Pbindf ( Pdef ( \x ), \dur , 0.1, \ct ...
-
... ... patternN <> pattern add another pattern to the chain // examples ( Pchain ( Pbind ( \detune , Pseq ([-30, 0, 40], inf ), \dur , Prand ([0.2, 0.4], inf )), Pbind ( \degree , Pseq ([1, 2, 3], inf ), \dur , 1) ).trace.play; ) // also event ...
-
... tion:2) ) } ).store; Pdef ( \sweep , { arg sustain=1, n=8, freq=440, ratio=0.1; Pbind ( \instrument , \pgrain , \dur , sustain.value / n, \freq , Pseq ((1..n)) * ratio + 1 * freq.value // freq is a function, has to be evaluated ) }); Pdef ( ...
-
... r ({ | sp | // parallel in-c'ish pulses will run throughout the example sp.par( Pbind (*[ degree: [0,7], octave: 7, dur: 0.2, db: Pseq ([-20, -24, -22, -24], inf )]) ); // scales in sequence with pauses sp.seq( Pbind (*[ degree: Pseq ((0..7 ...
-
... elect a chord and duration and repeat it for a random time interval p = Pstep ( Pbind ( \ctranspose , [0, 4, 7], \note , Pwhite (0, 12), \dur , Prand ([0.2, 0.4, 0.8], inf ) ), Prand ([1, 2, 4], inf )/4 ); Ppar ([p, p]).play; ) // change de ...
-
... o duration data. A Ppar is done when all of its subpatterns are done. ( Ppar ([ Pbind ( \dur , 0.2, \midinote , Pseq ([62, 65, 69, 72], inf )), Pbind ( \dur , 0.4, \midinote , Pseq ([50, 45], inf )) ]).play ) ( // Ppars can be nested Ppar ( ...
-
... Out .ar(out, Pan2 .ar( SinOsc .ar(freq, 0, env), pan)) }).store; ) Pdef ( \x , Pbind ( \dur , Pn (0.25, 3), \instrument , \gpdef )); Pdef ( \y , Pchain ( Pbind ( \degree , Prand ([5, 9, 0], inf ), \legato , Pseq ([0.3, 2.2], inf )), Pdef ( ...
-
... a very simple Pattern directly playable: ( // an endless sequence of middle Cs Pbind .new.play ) By adding other bindings, you can override the defaults in the protoEvent. ( // duration 0.25 beats (16th notes) Pbind ( \dur , 0.25 ).play ) ...
-
... 0.1.wait; }) }).play; ) ( Pfsm ([ #[5, 6, 7], // entry states //e1 (== state 0) Pbind ( \dur , Pseq ([ 1/8, 3/8 ]), \midinote , Pseq ([ 86, 75 ]) ), //#[1], // as given in CMJ // my de-boredom-ated version.. #[1, 1, 1, 1, 1, 1, 1, 8], //e2 ...