2 summary:: 2D Ambisonic B-format decoder.
3 related:: Classes/BiPanB2, Classes/PanB, Classes/PanB2, Classes/Rotate2
4 categories:: UGens>Multichannel>Ambisonics
9 Decode a two dimensional ambisonic B-format signal to a set of speakers
10 in a regular polygon. The outputs will be in clockwise order. The
11 position of the first speaker is either center or left of center.
20 Number of output speakers. Typically 4 to 8.
40 Should be zero if the front is a vertex of the polygon. The first
41 speaker will be directly in front. Should be 0.5 if the front
42 bisects a side of the polygon. Then the first speaker will be the
46 An array of channels, one for each speaker.
54 var w, x, y, p, a, b, c, d;
56 p = PinkNoise.ar; // source
59 #w, x, y = PanB2.ar(p, MouseX.kr(-1,1), 0.1);
61 // B-format decode to quad
62 #a, b, c, d = DecodeB2.ar(4, w, x, y);
64 [a, b, d, c] // reorder to my speaker arrangement: Lf Rf Lr Rr