-
... ); ) // comparison: emulate a linrand ( var a, b, x, y; a = Pprob ([1, 0]); x = Pfunc ({ 1.0.linrand }); b = a.asStream; y = x.asStream; postf( "Pprob mean: % linrand mean: % \n" , b.nextN(800).mean, y.nextN(800).mean); b.nextN(800).sort.pl ...
-
... rtTime; p = ( Psync ( Pbind ( \dur , 0.25, // total duration = infinite \time , Pfunc { startTime = startTime ? ( thisThread .clock.beats.debug( "time" )) } ), 1, 4) ++ Pfuncn ({ thisThread .clock.beats.debug( "finish time" ); ( thisThread ...
-
... ove = (view.value * 4 - 2).round; }) .value_(0.5); window.front; p = Pbind ( // Pfunc is the direction to move through the array // it could be anything // - could read from MIDI or HID and convert it into a step // - could be a GUI control ...
-
... p = Pbind ( \degree , Pswitch1 ([ Pwhite (7, 14, inf ), Pwhite (-7, 0, inf )], Pfunc { 0.7.coin.binaryValue }), \dur , 0.25 ).play; ) p.stop; Compare to the following: ( p = Pbind ( \degree , Pswitch ([ Pwhite (7, 14, inf ), Pwhite (-7, 0, ...
-
... Pseq ([2], inf ).asStream; freq = Pseq ([30,40,42,40], inf ).asStream; cutoff = Pfunc({500.rand2+1000}).asStream; rezz = 0.5; inf .do({saw.set( "freq" , freq.next.midicps, "cutoff" , cutoff.next, "rezz" , rezz, "amp" , 0.1, "out" , 0); (wai ...
-
... * Pbrown(lo, hi, step, length): Brownian motion, arithmetic scale (addition). * Pfunc(nextFunc, resetFunc): Get the stream values from a user-supplied function. * Pfuncn(func, repeats): Get values from the function, but stop after 'repeats' ...
-
... binop Pbrown Pconst PeakFollower Peep Pen Pevent PfadeIn PfadeOut Pfindur Pfset Pfunc Pfuncn Pfx Pgeom Pindex Plag PlayButton PlayerAmpGui PlayerBinop PlayerBinopGui PlayerEffectGui PlayerEfxFuncGui PlayerMixerGui PlayerPoolGui PlayerSpec P ...
-
... ), // some important conversions // identify the buffer numbers to read \freq , Pfunc { |ev| ev.use(ev[ \freq ]) }, \bufnum , Pfunc ({ |ev| ~midinotes.indexInBetween(ev[ \freq ].cpsmidi) }) .clip(0, ~midinotes.size - 1.001) ).play; ) p.stop ...
-
... hough, the 'time' key should be divided by the tempo: \time , Pkey ( \delta ) / Pfunc { thisThread .clock.tempo }, ( b = Buffer .read(s, "sounds/a11wlk01.wav" ); SynthDef ( \stretchedFragments , { |out, bufnum, start, time = 1, stretch = 1, ...
-
... inOsc .kr(2 * 3).max(0) * 0.2) }); Ndef ( \sound , Pbind ( \dur , 0.17, \freq , Pfunc ({ rrand(300, 700) })) ); Ndef ( \lfo , { LFNoise1 .kr(3, 400, 800) }); Ndef ( \sound ).map( \freq , Ndef ( \lfo )); Ndef ( \sound , { arg freq; SinOsc .a ...