2 summary:: geometric brownian motion pattern
3 related:: Classes/BrownNoise, Classes/Pbrown
4 categories:: Streams-Patterns-Events>Patterns>Random
8 Returns a stream that behaves like a geometric brownian motion.
15 lower boundary of values.
18 upper boundary of values.
21 maximum multiplication factor per step (omega) - the distribution is xrand2.
24 number of values produced.
31 a = Pgbrown(0.0, 1.0, 0.2, inf);
33 7.do({ b.next.postln; });
39 SynthDef(\help_sinegrain,
40 { arg out=0, freq=440, sustain=0.05;
42 env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction:2);
43 Out.ar(out, SinOsc.ar(freq, 0, env))
49 a = Pgbrown(1.0, 2.0, 0.1, inf).asStream;
52 Synth(\help_sinegrain, [\freq, a.next * 600 + 300]);
58 // compare with normal brownian motion:
62 a = Pbrown(1.0, 2.0, 0.1, inf).asStream;
65 Synth(\help_sinegrain, [\freq, a.next * 600 + 300]);