#N canvas 245 230 865 353 10;
#X obj 47 211 define_loudspeakers 3 -45 0 45 0 0 45 180 45;
#X msg 47 190 bang;
#X obj 147 263 define_loudspeakers 2 -45 45 0 180;
#X text 23 50 Use [define_loudspeakers] to list the speaker positions.
The example here defines loudspeakers in three dimensions (the first
parameter). For each speaker \, define its azimuth and elevation. Here
we have speakers front left and right with no elevation (-45 0 45 0)
and front and back with 45 degrees of elevation (0 45 180 45). Send
the data to:;
#X msg 451 160 ls-directions 3 -30 0 30 0 -90 0 90 0 0 0 -150 0 150
0 180 45 -45 45 45 45;
#X msg 440 97 ls-triplets 1 2 7 2 7 8 1 3 7;
#X obj 440 242 define_loudspeakers 2 -40 0 40 80 130 180 -130 -80;
#X text 436 52 If you are not happy with triangle selections of define_loudspeakers
\, you can define your own. (for experts only), f 65;
#X text 456 207 2-D setup -> only loudspeaker azimuths specified:;
#X text 455 222 (2 azi1 azi2 azi3 azi4...);
#X text 452 126 3-D setup -> (azimuth elevation) pairs are specified:
;
#X text 452 141 (3 azi1 ele1 azi2 ele2 ...);
#X msg 147 242 bang;
#X text 189 242 a 2D setup;
#X text 91 189 a 3D setup;
#X obj 111 305 zirkvbap 0 0;
#X text 23 136 In two dimensions \, only specify the azimuth. For example
"define_loudspeakers 2 -45 45 0 180";
#X text 23 19 [define_loudspeakers] works with [vbap] and [zirkvbap]
;
#X text 439 305 See [vbap] or [zirkvbap] for more details;
#X connect 0 0 15 0;
#X connect 1 0 0 0;
#X connect 2 0 15 0;
#X connect 4 0 6 0;
#X connect 5 0 6 0;
#X connect 12 0 2 0;
