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=
"824.42">
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: 9.0px Monaco
; min-height: 12.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: 9.0px Monaco
; color: #a71e12}
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
; color: #0019b7}
16 span
.s1
{color: #0019b7}
17 span
.Apple-tab-span
{white-space:pre
}
21 <p class=
"p1"><b>PanB
<span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span><span class=
"Apple-tab-span"> </span>Ambisonic B format panner
</b></p>
22 <p class=
"p2"><br></p>
23 <p class=
"p3"><b>PanB.ar(in, azimuth, elevation, gain)
</b></p>
24 <p class=
"p2"><br></p>
25 <p class=
"p3"><b>in
</b> - input signal
</p>
26 <p class=
"p3"><b>azimuth
</b> -
<span class=
"Apple-converted-space"> </span>in radians, -pi to +pi
</p>
27 <p class=
"p3"><b>elevation
</b> -
<span class=
"Apple-converted-space"> </span>in radians, -
0.5pi to +
0.5pi
</p>
28 <p class=
"p3"><b>gain
</b> - a control rate level input.
</p>
29 <p class=
"p2"><br></p>
30 <p class=
"p3">Output channels are in order W,X,Y,Z.
</p>
31 <p class=
"p2"><br></p>
32 <p class=
"p4">// You'll only hear the first two channels on a stereo setup.
</p>
33 <p class=
"p5">play({
<span class=
"Apple-converted-space"> </span></p>
34 <p class=
"p5"><span class=
"Apple-tab-span"> </span>#w, x, y, z =
<span class=
"s1">PanB
</span>.ar(
<span class=
"s1">WhiteNoise
</span>.ar,
<span class=
"s1">LFSaw
</span>.kr(
0.5,pi),
<span class=
"s1">FSinOsc
</span>.kr(
0.31,
0.5pi),
0.3);
</p>
35 <p class=
"p5"><span class=
"Apple-tab-span"> </span>//decode for
4 channels
</p>
36 <p class=
"p6"><span class=
"Apple-tab-span"> </span>DecodeB2.ar(
4, w, x, y,
0.5);
</p>