2 summary:: random values that follow a Eulerian Beta Distribution
3 categories:: Streams-Patterns-Events>Patterns>Random
10 lower boundary of values.
13 upper boundary of values.
16 The probability that a value will occur near lo. <1, probability of a value near lo increases. =1, uniform dist. >1 will create a bounded Gaussian-like distribution.
19 The probability that a value will occur near hi. <1, probability of a value near lo increases. =1, uniform dist. >1 will create a bounded Gaussian-like distribution.
22 number of values produced (default: inf).
29 a = Pbeta(0.0, 1.0, 0.1, 0.1, inf);
30 c = a.asStream.nextN(500);
31 w = Window.new("Pbetarand", Rect(10, 10, 540, 800));
33 c.plot(bounds: Rect(10, 10, 520, 380), discrete: true, parent: w);
34 // a histogram of the values
35 c.histo(500).plot(bounds: Rect(10, 410, 520, 380), parent: w);
40 a = Pbeta(0.0, 1.0, 1, 1, inf);
41 c = a.asStream.nextN(500);
42 w = Window.new("Pbetarand", Rect(10, 10, 540, 800));
44 c.plot(bounds: Rect(10, 10, 520, 380), discrete: true, parent: w);
45 // a histogram of the values
46 c.histo(500).plot(bounds: Rect(10, 410, 520, 380), parent: w);(discrete: true);
51 a = Pbeta(0.0, 1.0, 3, 3, inf);
52 c = a.asStream.nextN(500);
53 w = Window.new("Pbetarand", Rect(10, 10, 540, 800));
55 c.plot(bounds: Rect(10, 10, 520, 380), discrete: true, parent: w);
56 // a histogram of the values
57 c.histo(500).plot(bounds: Rect(10, 410, 520, 380), parent: w);
62 SynthDef(\help_sinegrain,
63 { arg out=0, freq=440, sustain=0.05;
65 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
66 Out.ar(out, SinOsc.ar(freq, 0, env))
73 a = Pbeta(0.0, 1.0, 0.1, 0.1, inf).asStream;
76 Synth(\help_sinegrain, [\freq, a.next * 600 + 300]);
84 a = Pbeta(0.0, 1.0, 1.0, 1.0, inf).asStream;
87 Synth(\help_sinegrain, [\freq, a.next * 600 + 300]);
95 a = Pbeta(0.0, 1.0, 3.0, 3.0, inf).asStream;
98 Synth(\help_sinegrain, [\freq, a.next * 600 + 300]);