-
... hen you can use the values further in the Pbind to calculate things with (using Pfunc or Pkey). Class Methods . new The new method needs a mini-notation string as argument. Returns: a pattern that will return 5 values for every step. Inheri ...
-
... r: .collect { |x| ~dur = x } .trace \amp, Pseq([0.2, 0.05], 15).trace ],[ \dur, Pfunc { ~dur / 2 }, \midinote, Pshuf((60..85)) ] ]).trace.play; ) ⧉ ✔ Ex.3: Data sharing between streams of parallel PmonoPars // data sharing between streams o ...
-
... = value . iffalse . iffalse = value . iftrue . iftrue = value Examples p = Pif(Pfunc({ 0.3.coin }), Pwhite(0, 9, inf), Pwhite(100, 109, inf)).asStream; p.nextN(20); // 7 of the 20 values, or roughly 30%, are in the 0-9 range: [105, 107, 10 ...
-
... a Ref : Pseq([`Pwhite(0, 9, 5), `Pwhite(10, 19, 5)], 1).asStream.all; ⧉ ✔ Hint: Pfunc is another good way to wrap patterns, because it simply returns its result values without further embedding. See the first example. Class Methods Pspawn. ...
-
... ]).sin * ~b[1]) }; p = Pbind( \dev, Ptime().collect(f), \midinote, Pkey(\dev) + Pfunc { ~add }, \amp, 0.05, \dur, 0.15 ); // add some harmonies q = Padd(\midinote, [-12, -7, 0, 5], p); r = Padd(\midinote, [0, 2.5], p); v = VarGui([70, 55].c ...
-
... Instance methods Inherited instance methods Undocumented instance methods cleanupFunc embedInStream makeFunction pattern Examples Example 1, loading and granulating a sound file. Example 2, loading a waveform buffer and modifying it in perf ...
-
... d( \method, \par, // embed patterns in parallel // generate the subpattern in a Pfunc (so there's a new pattern each time) // Pfunc returns the pattern without rendering the stream // -- important for Pspawn // See the Pspawn helpfile for o ...
-
... / counted embedding of event patterns ( p = Pbind( \midinote, PLseq((55..70)) + Pfunc { [0, [4,5].choose] }, \dur, 0.2 ); q = Pbind( \midinote, PLseq((80..100)), \dur, 0.05 ); x = PLseq([ PS(p, Pwhite(2,6)), PS(q, Pwhite(2,6)) ]).play; ) x. ...
-
... se, Pn(1, 4)), Pbind(\mtranspose, Pn(2, 7)) ], inf); c = Prand([ Pbind(\detune, Pfuncn({ [0, 10.0].rand }, 5), \legato, 0.2, \dur, 0.2), Pbind(\legato, Pseq([0.2, 0.5, 1.5], 2), \dur, 0.3) ], inf); Pchain(a, b, c).trace.play; ) ⧉ ✔ pattern ...
-
... \amp, 0.4, \start, start * b.sampleRate, \dur, beatsInLoop, \time, Pkey(\dur) / Pfunc { thisThread.clock.tempo }, \rate, Pfunc { thisThread.clock.tempo / originalTempo } ), 0.5, Pn( Pfindur(4, Pbind( \instrument, \bell, \accent, Pseq([2, Pn ...