-
LinRand: Filter: Description Class methods new Inherited class methods Instance methods Inherited instance methods Examples Classes | UGens > Random'>Random LinRand : UGen : AbstractFunction : Object Skewed random number generator. Source: ...
-
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 ...
-
ArrayGeneratorDef( \linrand, { |f, n = 1| var range; range = f.get( \range ); thisThread.randSeed = f.get( \seed ); n.collect({ |i| 1.0.linrand.linlin(0,1,*range); }); }, [ \range, [0.0,1.0], \seed, 12345 ], { |f, obj| [ \range, if( obj.min ...
-
... random numbers: 1. Between zero and <number>: 5.rand // evenly distributed. 1.0.linrand // probability decreases linearly from 0 to <number>. 2. Between -<number> and <number>: 5.0.rand2 // evenly distributed. 10.bilinrand // probability is ...
-
... le random numbers '>Between zero and <number> 5.rand // evenly distributed. 1.0.linrand // probability decreases linearly from 0 to <number>. ⧉ ✔ %20and%20 '>Between -<number> and <number> 5.0.rand2 // evenly distributed. 10.bilinrand // pr ...
-
... extN(800).sort.plot( "sorted distribution, again" ); ) // 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(8 ...
-
... playing, and remains fixed for the duration of the synth's existence. See also: LinRand , ExpRand ( SynthDef ( \help_Rand , { | out = 0, minmax = 1 | Out .ar(out, FSinOsc .ar( LinRand (200.0, 10000.0, minmax), 0, Line .kr(0.2, 0, 0.01, done ...
-
... .nextN(800).sort.plot("sorted distribution, again"); ) // 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). ...
-
... 3, 30), 0, Rand(0.4, 0.6), Rand(-100, 100)), Rand(0.4, 0.6), LFPulse.kr(LinRand(0.05, 2), 0, LinRand(0.1, 0.5), 0.5) ); Pan2.ar(src, Rand(-0.95, 0.95), amp.lag(lag)); }); }; Ndef.all; //list them ) //--start alarms ...
-
... amp= 0.1, gate= 1, detune= 0| var env= EnvGen.ar(Env.perc(Rand(0.001, 0.01), LinRand(0.2, 0.4), amp, Rand(-9, -1)), doneAction:2); var snd= Mix(SinOsc.ar(freq+[0, detune*0.1], env*2pi)); Out.ar(out, Pan2.ar(snd*env, Rand(-1, 1))); ...