2 summary:: 2D Ambisonic B-format panner.
3 related:: Classes/DecodeB2, Classes/PanB, Classes/PanB2, Classes/Rotate2
4 categories:: UGens>Multichannel>Ambisonics
9 Encode a two channel signal to two dimensional ambisonic B-format. This
10 puts two channels at opposite poles of a 2D ambisonic field. This is one
11 way to map a stereo sound onto a soundfield. It is equivalent to:
14 PanB2(inA, azimuth, gain) + PanB2(inB, azimuth + 1, gain)
28 Position around the circle from -1 to +1.
30 -1 is behind, -0.5 is left, 0 is forward, +0.5 is right, +1 is behind.
42 var w, x, y, p, q, a, b, c, d;
48 #w, x, y = BiPanB2.ar(p, q, MouseX.kr(-1,1), 0.1);
50 // B-format decode to quad
51 #a, b, c, d = DecodeB2.ar(4, w, x, y);
53 [a, b, d, c] // reorder to my speaker arrangement: Lf Rf Lr Rr