8 rate = MouseX.kr(100, SampleRate.ir);
10 x = Dbufrd(b); // read from buffer
12 x = if(x > 1, Dwhite(-1, 1, inf), x);
13 y = Dbufwr(x, b); // write to buffer
14 Duty.ar(1 / rate, 0, y) * 0.1.dup;
21 var x, y, rate, a, mod, b;
25 mod = Drand([Dseries(-1, 0.01, 200), Dseries(1, -0.1, 20)], inf);
26 x = Dbufrd(b); // read from buffer
28 x = if(x.abs < 0.1, x * mod, x);
30 y = Dbufwr(x, b); // write to buffer
31 Duty.ar(1 / rate, 0, y) * 0.1.dup;
39 var x, y, rate, a, mod, b;
43 mod = Drand([Dseries(-1, 0.01, MouseX.kr(0, 200)), Dseries(1, -0.1, MouseY.kr(0, 200))], inf);
44 x = Dbufrd(b); // read from buffer
46 x = if(x.abs < 0.1, x * mod, x);
48 y = Dbufwr(x, b); // write to buffer
49 Duty.ar(1 / rate, 0, y) * 0.1.dup;
56 var x, y, rate, a, mod, b;
59 a = Dwhite(-1, 1, inf) * 0.2;
60 x = Dbufrd(b); // read from buffer
63 y = Dbufwr(x, b); // write to buffer
64 Duty.ar(1 / rate, 0, y) * 0.1.dup;
68 // harsher brown noise
71 var x, y, rate, a, mod, b;
74 a = Dwhite(-1, 1, inf) * Drand([0.2, 0.2, 1, 10], inf);
75 x = Dbufrd(b); // read from buffer
78 y = Dbufwr(x, b); // write to buffer
79 Duty.ar(1 / rate, 0, y) * 0.1.dup;
89 var read = { Dbufrd(b) };
90 var write = { |x| Dbufwr(x, b) };
91 var x, y, rate, a, mod;
93 a = Dwhite(-1, 1, inf);
94 x = read; // read from buffer
97 y = write.(x); // write to buffer
98 Duty.ar(1 / rate, 0, y) * 0.1.dup;