1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
5 <meta http-equiv=
"Content-Style-Type" content=
"text/css">
7 <meta name=
"Generator" content=
"Cocoa HTML Writer">
8 <meta name=
"CocoaVersion" content=
"949.43">
9 <style type=
"text/css">
10 p
.p1
{margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica
}
11 p
.p2
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
; min-height: 14.0px}
12 p
.p3
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
}
13 p
.p4
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica
; color: #0021e7}
14 p
.p5
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Monaco
; min-height: 16.0px}
15 p
.p6
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #ad140d}
16 p
.p7
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
}
17 p
.p8
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; min-height: 12.0px}
18 span
.s1
{font: 12.0px Helvetica
}
19 span
.s2
{color: #000000}
20 span
.s3
{text-decoration: underline
}
21 span
.s4
{color: #001bb9}
22 span
.s5
{color: #0000bf}
23 span
.Apple-tab-span
{white-space:pre
}
27 <p class=
"p1"><b>PinkNoise
<span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></b><span class=
"s1"><b>1/f noise
</b></span><b><span class=
"Apple-tab-span"> </span></b></p>
28 <p class=
"p2"><br></p>
29 <p class=
"p3"><b>PinkNoise.ar(mul, add)
</b></p>
30 <p class=
"p3"><b>PinkNoise.kr(mul, add)
</b></p>
31 <p class=
"p2"><br></p>
32 <p class=
"p4"><span class=
"s2">see also:
<a href=
"WhiteNoise.html"><span class=
"s3">WhiteNoise
</span></a>,
<a href=
"BrownNoise.html"><span class=
"s3">BrownNoise
</span></a>,
<a href=
"../../Other Topics/Randomness.html"><span class=
"s3">Randomness
</span></a></span></p>
33 <p class=
"p2"><br></p>
34 <p class=
"p3">Generates noise whose spectrum falls off in power by
3 dB per octave.
</p>
35 <p class=
"p3">This gives equal power over the span of each octave.
</p>
36 <p class=
"p3">This version gives
8 octaves of pink noise.
</p>
37 <p class=
"p5"><br></p>
38 <p class=
"p6">// compare:
</p>
39 <p class=
"p7">{
<span class=
"s4">PinkNoise
</span>.ar(
0.3) }.play;
</p>
40 <p class=
"p7">{
<span class=
"s4">WhiteNoise
</span>.ar(
0.3) }.play;
</p>
41 <p class=
"p8"><br></p>
42 <p class=
"p8"><br></p>
43 <p class=
"p6">// pink noise as a frequency modulator
</p>
44 <p class=
"p7">{
<span class=
"s4">SinOsc
</span>.ar(
<span class=
"s4">PinkNoise
</span>.ar(
100,
200)) *
0.1 }.play;
</p>
45 <p class=
"p8"><br></p>
46 <p class=
"p6">// filtered pink noise
</p>
47 <p class=
"p7">{
<span class=
"s4">BPF
</span>.ar(
<span class=
"s5">PinkNoise
</span>.ar(
0.1.dup), MouseX.kr(
40,
17000,
1),
0.2) }.play;
</p>