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=
"1038.35">
9 <style type=
"text/css">
10 p
.p1
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.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
; color: #0021e7}
13 p
.p4
{margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier
}
14 p
.p5
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; min-height: 12.0px}
15 p
.p6
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #bf0000}
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 Helvetica
; min-height: 11.0px}
18 span
.s1
{font: 18.0px Helvetica
}
19 span
.s2
{color: #000000}
20 span
.s3
{color: #0000ee}
21 span
.s4
{color: #0026b4}
22 span
.s5
{color: #0021e7}
23 span
.s6
{color: #002fe0}
24 span
.s7
{color: #0000ff}
25 span
.s8
{color: #0000bf}
26 span
.Apple-tab-span
{white-space:pre
}
30 <p class=
"p1"><span class=
"s1"><b>Changed
<span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></b></span><b><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>triggers when a value changes
</b></p>
31 <p class=
"p2"><br></p>
32 <p class=
"p3"><span class=
"s2"><b>Inherits from:
</b><a href=
"../../Core/Object.html"><span class=
"s3"><b>Object
</b></span></a></span><span class=
"s4"><b> :
</b><a href=
"../../Core/Kernel/AbstractFunction.html"><span class=
"s5"><b>AbstractFunction
</b></span></a><b> :
</b><a href=
"../UGen.html"><span class=
"s6"><b>UGen
</b></span></a></span><span class=
"s6"><b> :
</b><a href=
"../Filter.html"><span class=
"s7"><b>Filter
</b></span></a><b><span class=
"Apple-converted-space"> </span></b></span></p>
33 <p class=
"p2"><br></p>
34 <p class=
"p1"><b>Changed.ar(in, thresh)
</b></p>
35 <p class=
"p1"><b>Changed.kr(in, thresh)
</b></p>
36 <p class=
"p2"><br></p>
37 <p class=
"p1">A special case fixed filter. Implements the formula:
</p>
38 <p class=
"p2"><br></p>
39 <p class=
"p4">out(i) = abs(in(i) - in(i-
1))
> thresh
</p>
40 <p class=
"p2"><br></p>
41 <p class=
"p2"><br></p>
42 <p class=
"p2"><br></p>
43 <p class=
"p5"><br></p>
44 <p class=
"p6">// detect changes in a signal:
</p>
46 <p class=
"p7">{
<span class=
"Apple-converted-space"> <span class=
"Apple-tab-span"> </span></span></p>
47 <p class=
"p7"><span class=
"Apple-tab-span"> </span><span class=
"s8">var
</span> changingSignal =
<span class=
"s8">LFNoise0
</span>.ar(
1000);
<span class=
"Apple-converted-space"> </span></p>
48 <p class=
"p7"><span class=
"Apple-tab-span"> </span><span class=
"s8">var
</span> changed =
<span class=
"s8">Changed
</span>.ar(changingSignal);
</p>
49 <p class=
"p7"><span class=
"Apple-tab-span"> </span>[changingSignal, changed]
</p>
50 <p class=
"p7">}.plot2
</p>
52 <p class=
"p8"><br></p>