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: 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 Monaco
; color: #002dad; min-height: 16.0px}
14 p
.p5
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
}
15 p
.p6
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; min-height: 12.0px}
16 p
.p7
{margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco
; color: #ad140d}
17 span
.s1
{font: 18.0px Helvetica
}
18 span
.s2
{text-decoration: underline
}
19 span
.s3
{color: #2c7014}
20 span
.s4
{color: #000000}
21 span
.s5
{text-decoration: underline
; color: #0021e7}
22 span
.s6
{color: #001bb9}
23 span
.Apple-tab-span
{white-space:pre
}
27 <p class=
"p1"><span class=
"s1"><b>abs
<span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span></b></span><b>absolute value
</b></p>
28 <p class=
"p2"><br></p>
29 <p class=
"p1"><b>a.abs
</b></p>
30 <p class=
"p1"><b>abs(a)
</b></p>
31 <p class=
"p2"><br></p>
32 <p class=
"p2"><br></p>
33 <p class=
"p3"><span class=
"s2"><a href=
"../Math/SimpleNumber.html">SimpleNumber
</a></span></p>
34 <p class=
"p4"><br></p>
35 <p class=
"p5">abs(-
5);
</p>
36 <p class=
"p5">-
5.abs;
</p>
37 <p class=
"p6"><br></p>
38 <p class=
"p3"><span class=
"s2"><a href=
"../Collections/SequenceableCollection.html">SequenceableCollection
</a></span></p>
39 <p class=
"p6"><br></p>
40 <p class=
"p5">[-
2, -
4,
3,
7, -
2, [-
1, -
1, -
2], [
100, -
100], -
2,
1,
3].abs;
</p>
41 <p class=
"p6"><br></p>
42 <p class=
"p3"><span class=
"s2"><a href=
"../Core/Symbol.html">Symbol
</a></span></p>
43 <p class=
"p6"><br></p>
44 <p class=
"p7"><span class=
"s3">\foo
</span><span class=
"s4">.abs;
</span>// returns itself. this is used in Envelopes see
<a href=
"../Control/Env.html"><span class=
"s5">Env
</span></a>.
</p>
45 <p class=
"p4"><br></p>
46 <p class=
"p3"><span class=
"s2"><a href=
"../Geometry/Point.html">Point
</a></span></p>
47 <p class=
"p4"><br></p>
48 <p class=
"p5"><span class=
"s6">Point
</span>(-
1,
2).abs;
</p>
49 <p class=
"p4"><br></p>
50 <p class=
"p3"><span class=
"s2"><a href=
"../Core/Kernel/Function.html">Function
</a></span></p>
51 <p class=
"p4"><br></p>
52 <p class=
"p5">f = abs({
<span class=
"s6">|x|
</span> sin(x) });
</p>
53 <p class=
"p5">f.value((
0.
.1000).normalize(
0,
8pi)).plot;
</p>
54 <p class=
"p6"><br></p>
55 <p class=
"p3"><span class=
"s2"><a href=
"../UGens/UGen.html">UGen
</a></span></p>
56 <p class=
"p6"><br></p>
59 <p class=
"p5"><span class=
"Apple-tab-span"> </span>var a =
<span class=
"s6">SyncSaw
</span>.ar(
100,
440,
0.1);
</p>
60 <p class=
"p7"><span class=
"s4"><span class=
"Apple-tab-span"> </span>a.abs
</span>// Absolute value
</p>
61 <p class=
"p5">}.play
</p>
63 <p class=
"p6"><br></p>
64 <p class=
"p7">// compared to
</p>
67 <p class=
"p5"><span class=
"Apple-tab-span"> </span>var a =
<span class=
"s6">SyncSaw
</span>.ar(
100,
440,
0.1);
</p>
68 <p class=
"p5"><span class=
"Apple-tab-span"> </span>a
</p>
69 <p class=
"p5">}.play
</p>