#N canvas 177 32 793 647 10;
#X text 19 210 In two dimensions \, only specify the azimuth. (for
example "define_loudspeakers 2 -45 45 0 180";
#X text 20 80 [define_loudspeakers] works with;
#X obj 252 80 vbap;
#X text 15 111 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 428 221 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 411 158 ls-triplets 1 2 7 2 7 8 1 3 7;
#X text 431 113 If you are not happy with triangle selections of define_loudspeakers
\, you can define your own. (for experts only);
#X text 427 268 2-D setup -> only loudspeaker azimuths specified:;
#X text 426 283 (2 azi1 azi2 azi3 azi4...);
#X text 425 184 3-D setup -> (azimuth elevation) pairs are specified:
;
#X text 423 202 (3 azi1 ele1 azi2 ele2 ...);
#X text 637 47 a 2D setup;
#X text 679 77 a 3D setup;
#X obj 56 355 testtools/unit-test-frame;
#X obj 377 14 t b b b b;
#X msg 56 322 define-loudspeaker-unittest;
#X obj 56 296 loadbang;
#X obj 377 79 vbap/define_loudspeakers 3 -45 0 45 0 0 45 180 45;
#X obj 394 49 vbap/define_loudspeakers 2 -45 45 0 180;
#X obj 411 303 vbap/define_loudspeakers 2 -40 0 40 80 130 180 -130
-80;
#X connect 4 0 19 0;
#X connect 5 0 19 0;
#X connect 13 3 14 0;
#X connect 14 0 17 0;
#X connect 14 1 18 0;
#X connect 14 2 5 0;
#X connect 14 3 4 0;
#X connect 15 0 13 0;
#X connect 16 0 15 0;
#X connect 17 0 13 1;
#X connect 18 0 13 1;
#X connect 19 0 13 1;
