-
... ated, but the synth is freed (without fading) ( ~out = { Out .ar(0, SinOsc .ar( Rand (440,550),0,0.2)) }; ) c) custom fade envelope // when a gate arg is provided, and the env can free the synth, this envelope // is supposed to be the fade ...
-
ExpRand exponential distribution single random float value ugen ExpRand(lo, hi) Generates a single random float value in an exponential distributions from lo to hi. See also: LinRand , Rand ( SynthDef ( \help_ExpRand , { | out = 0, n = 0 | ...
-
... SCStaticText (w, 200@20).string_( "The quick drowned fox" ).background_( Color .rand).align_( \center ); b= SCButton (w, 200@20).states_([[ "The quick drowned fox" ]]).background_( Color .rand); c= SCPopUpMenu (w, 200@20).items_([ "The quic ...
-
... : ts) ) }).load(s); ) ( r = Routine ({ 12.do({ Synth ( "fm2" , [ \freq , 400.0.rrand(1200), \carPartial , 0.5.rrand(2), \ts , 0.1.rrand(4)]); 2.wait; }) }); ) r.reset.play; /////////////////////////////////////////////////////////////////// ...
-
... c .ar(freq) * 0.1 }.play; ) // audio rate ( { var a, freq, trig; a = Dseq ({ 10.rand } ! 32, inf ); trig = Impulse .ar( MouseX .kr(1, 10000, 1)); freq = Demand .ar(trig, 0, a) * 30 + 340; SinOsc .ar(freq) * 0.1 }.play; )
-
... / example ( var a, b, c; a = { [100, 200, 300].choose }; // a Function b = { 10.rand + 1 }; // another Function c = a + b; // c is a Function. c.value.postln; // evaluate c and print the result ) See AbstractFunction for function compositio ...
-
NRand NRand(lo, hi, n) Generates a single random float value in a sum of n uniform distributions from lo to hi. n = 1 : uniform distribution - same as Rand n = 2 : triangular distribution n = 3 : smooth hump as n increases, distribution con ...
-
LinRand linear distribution single random float value ugen LinRand(lo, hi, minmax) Generates a single random float value in linear distribution from lo to hi , skewed towards lo if minmax < 0, otherwise skewed towards hi. See also: Rand , E ...
-
... - Pdefn ( \a )); // (re)define Pdefn(\c) 8.do { t.value.postln }; Pdefn ( \a , Prand ([1, 4, 2], inf )); // (re)define Pdefn(\a) Embedding Pdefn in other patterns Pdefn ( \x , Pseq ([1, 2, 3], inf )); x = Pseq ([0, 0, Pdefn ( \x )], inf ).a ...
-
... NAryOpFunction related: BinaryOpStream , Pbinop // sound example ( var a = { 19.rand }; var b = { [5, 8, 9].choose }; var c = a + b; fork { 15.do { (instrument: \default , note: [c.value, a.value]).play; 0.3.wait; } } )