aboutsummaryrefslogtreecommitdiff
path: root/Ambisonic_2d_example.pd
diff options
context:
space:
mode:
Diffstat (limited to 'Ambisonic_2d_example.pd')
-rw-r--r--Ambisonic_2d_example.pd526
1 files changed, 268 insertions, 258 deletions
diff --git a/Ambisonic_2d_example.pd b/Ambisonic_2d_example.pd
index 0e57494..a44b992 100644
--- a/Ambisonic_2d_example.pd
+++ b/Ambisonic_2d_example.pd
@@ -1,258 +1,268 @@
-#N canvas 26 2 875 690 10;
-#X obj 20 44 dsp;
-#X obj 20 24 tgl 15 0 empty empty empty 0 -6 0 8 -260818 -1 -1 0 1
-;
-#X floatatom 20 83 5 0 0 0 - - -;
-#X floatatom 33 65 5 0 0 0 - - -;
-#X obj 230 88 ambi_encode 2;
-#X obj 469 102 mtx_*~ 5 1 100;
-#X obj 509 11 noise~;
-#X obj 509 32 rbpq2~ 1000 2 100;
-#X obj 225 591 mtx_print;
-#X obj 230 140 mtx 5 1;
-#X msg 230 51 col 1 \$1;
-#X obj 230 109 t b a;
-#X obj 699 118 prvu~;
-#X obj 700 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
-#X obj 719 118 prvu~;
-#X obj 720 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
-#X obj 739 118 prvu~;
-#X obj 740 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
-#X obj 759 118 prvu~;
-#X obj 760 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
-#X obj 779 118 prvu~;
-#X obj 780 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 1 0;
-#X obj 115 222 loadbang;
-#X obj 442 257 mtx_*~ 2 2 100;
-#X obj 537 257 mtx_*~ 2 2 100;
-#X obj 233 240 ambi_rot 2;
-#X obj 699 273 prvu~;
-#X obj 700 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
-#X obj 719 273 prvu~;
-#X obj 720 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
-#X obj 739 273 prvu~;
-#X obj 740 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
-#X obj 759 273 prvu~;
-#X obj 760 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
-#X obj 779 273 prvu~;
-#X obj 780 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 1 0;
-#X obj 411 257 *~ 1;
-#X obj 131 436 round_zero 1e-006;
-#X obj 147 343 pp real_ls;
-#X msg 131 364 begin_pseudo_inverse;
-#X msg 115 385 end_pseudo_inverse;
-#X obj 115 245 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X obj 131 414 ambi_decode3 2 2 8 0;
-#X msg 147 322 1 0 \, 2 45 \, 3 90 \, 4 135 \, 5 180 \, 6 225 \, 7
-270 \, 8 315;
-#X obj 425 381 mtx_*~ 8 5 0 ________________;
-#X obj 115 264 t b b b b;
-#X obj 508 75 mull~ 1 100;
-#X obj 618 38 fadtodb;
-#X obj 551 55 dbtorms;
-#X obj 618 58 - 100;
-#X obj 618 82 vsl 15 121 0 120 0 1 empty empty empty 0 -8 0 8 -260818
--1 -1 10400 1;
-#X floatatom 637 80 5 0 0 0 - - -;
-#N canvas 0 0 462 312 __________________________ 0;
-#X obj 25 66 rvu~;
-#X obj 25 86 + 100;
-#X obj 25 106 dbtorms;
-#X obj 25 127 outlet;
-#X obj 75 66 rvu~;
-#X obj 75 86 + 100;
-#X obj 75 106 dbtorms;
-#X obj 75 127 outlet;
-#X obj 125 66 rvu~;
-#X obj 125 86 + 100;
-#X obj 125 106 dbtorms;
-#X obj 125 127 outlet;
-#X obj 175 66 rvu~;
-#X obj 175 86 + 100;
-#X obj 175 106 dbtorms;
-#X obj 175 127 outlet;
-#X obj 225 66 rvu~;
-#X obj 225 86 + 100;
-#X obj 225 106 dbtorms;
-#X obj 225 127 outlet;
-#X obj 275 66 rvu~;
-#X obj 275 86 + 100;
-#X obj 275 106 dbtorms;
-#X obj 275 127 outlet;
-#X obj 325 66 rvu~;
-#X obj 325 86 + 100;
-#X obj 325 106 dbtorms;
-#X obj 325 127 outlet;
-#X obj 375 66 rvu~;
-#X obj 375 86 + 100;
-#X obj 375 106 dbtorms;
-#X obj 375 127 outlet;
-#X obj 25 45 inlet~;
-#X obj 75 45 inlet~;
-#X obj 125 45 inlet~;
-#X obj 175 45 inlet~;
-#X obj 225 45 inlet~;
-#X obj 275 45 inlet~;
-#X obj 325 45 inlet~;
-#X obj 375 46 inlet~;
-#X connect 0 0 1 0;
-#X connect 1 0 2 0;
-#X connect 2 0 3 0;
-#X connect 4 0 5 0;
-#X connect 5 0 6 0;
-#X connect 6 0 7 0;
-#X connect 8 0 9 0;
-#X connect 9 0 10 0;
-#X connect 10 0 11 0;
-#X connect 12 0 13 0;
-#X connect 13 0 14 0;
-#X connect 14 0 15 0;
-#X connect 16 0 17 0;
-#X connect 17 0 18 0;
-#X connect 18 0 19 0;
-#X connect 20 0 21 0;
-#X connect 21 0 22 0;
-#X connect 22 0 23 0;
-#X connect 24 0 25 0;
-#X connect 25 0 26 0;
-#X connect 26 0 27 0;
-#X connect 28 0 29 0;
-#X connect 29 0 30 0;
-#X connect 30 0 31 0;
-#X connect 32 0 0 0;
-#X connect 33 0 4 0;
-#X connect 34 0 8 0;
-#X connect 35 0 12 0;
-#X connect 36 0 16 0;
-#X connect 37 0 20 0;
-#X connect 38 0 24 0;
-#X connect 39 0 28 0;
-#X restore 425 406 pd __________________________;
-#X obj 459 490 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
--1 0 1;
-#X obj 486 460 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
--1 0 1;
-#X obj 486 528 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
--1 0 1;
-#X obj 516 450 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
--1 0 1;
-#X obj 516 538 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
--1 0 1;
-#X obj 546 460 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
--1 0 1;
-#X obj 546 528 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
--1 0 1;
-#X obj 573 490 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
--1 0 1;
-#X msg 310 58 ambi_weight 1 1 1;
-#X msg 164 299 ambi_weight 1 1 0.3904;
-#X msg 89 466 ambi_weight 1 1 1;
-#X text 388 509 +90 degree;
-#X text 601 506 -90 degree;
-#X text 486 602 +-180 degree;
-#X obj 234 220 cnv 12 30 12 empty empty empty 20 12 0 14 -260818 -66577
-0;
-#X obj 231 32 cnv 12 30 12 empty empty empty 20 12 0 14 -260818 -66577
-0;
-#X floatatom 230 31 5 -180 180 0 - - -;
-#X text 232 14 phi;
-#X floatatom 233 219 5 -180 180 0 - - -;
-#X text 231 201 rho_z;
-#X obj 264 213 cnv 8 8 8 empty empty empty 20 12 0 14 -262144 -66577
-0;
-#X obj 260 24 cnv 8 8 8 empty empty empty 20 12 0 14 -262144 -66577
-0;
-#X text 341 114 ENCODING;
-#X text 309 378 DECODING;
-#X text 323 257 ROTATING;
-#X text 587 90 gain;
-#X text 24 119 iemmatrix \, iem_ambi \, iemgui;
-#X text 17 108 we need iemlib1 \, iemlib2 \,;
-#X text 78 596 IEM KUG;
-#X text 62 584 musil;
-#X text 92 584 @;
-#X text 98 584 iem.at;
-#X text 61 606 Graz \, Austria;
-#X text 13 573 (c) Thomas Musil 2000 - 2006;
-#X connect 0 0 2 0;
-#X connect 0 1 3 0;
-#X connect 1 0 0 0;
-#X connect 4 0 11 0;
-#X connect 5 0 12 0;
-#X connect 5 0 36 0;
-#X connect 5 1 14 0;
-#X connect 5 1 23 1;
-#X connect 5 2 16 0;
-#X connect 5 2 23 2;
-#X connect 5 3 18 0;
-#X connect 5 3 24 1;
-#X connect 5 4 20 0;
-#X connect 5 4 24 2;
-#X connect 6 0 7 0;
-#X connect 7 0 46 0;
-#X connect 9 0 5 0;
-#X connect 10 0 4 0;
-#X connect 11 0 9 0;
-#X connect 11 1 9 0;
-#X connect 12 0 13 0;
-#X connect 14 0 15 0;
-#X connect 16 0 17 0;
-#X connect 18 0 19 0;
-#X connect 20 0 21 0;
-#X connect 22 0 41 0;
-#X connect 23 0 28 0;
-#X connect 23 0 44 2;
-#X connect 23 1 30 0;
-#X connect 23 1 44 3;
-#X connect 24 0 32 0;
-#X connect 24 0 44 4;
-#X connect 24 1 34 0;
-#X connect 24 1 44 5;
-#X connect 25 0 23 0;
-#X connect 25 1 24 0;
-#X connect 26 0 27 0;
-#X connect 28 0 29 0;
-#X connect 30 0 31 0;
-#X connect 32 0 33 0;
-#X connect 34 0 35 0;
-#X connect 36 0 26 0;
-#X connect 36 0 44 1;
-#X connect 37 0 44 0;
-#X connect 38 0 42 0;
-#X connect 39 0 42 0;
-#X connect 40 0 42 0;
-#X connect 41 0 45 0;
-#X connect 42 0 37 0;
-#X connect 43 0 38 0;
-#X connect 44 0 52 0;
-#X connect 44 1 52 1;
-#X connect 44 2 52 2;
-#X connect 44 3 52 3;
-#X connect 44 4 52 4;
-#X connect 44 5 52 5;
-#X connect 44 6 52 6;
-#X connect 44 7 52 7;
-#X connect 45 0 40 0;
-#X connect 45 1 39 0;
-#X connect 45 2 43 0;
-#X connect 45 3 62 0;
-#X connect 46 0 5 1;
-#X connect 47 0 48 0;
-#X connect 47 0 49 0;
-#X connect 48 0 46 1;
-#X connect 49 0 51 0;
-#X connect 50 0 47 0;
-#X connect 52 0 56 0;
-#X connect 52 1 54 0;
-#X connect 52 2 53 0;
-#X connect 52 3 55 0;
-#X connect 52 4 57 0;
-#X connect 52 5 59 0;
-#X connect 52 6 60 0;
-#X connect 52 7 58 0;
-#X connect 61 0 4 0;
-#X connect 62 0 42 0;
-#X connect 63 0 42 0;
-#X connect 69 0 10 0;
-#X connect 71 0 25 0;
+#N canvas 27 50 875 690 10;
+#X declare -stdlib extra/iem_ambi -stdlib extra/iemmatrix -stdlib extra/iemlib/iemlib1
+-stdlib extra/iemlib/iemlib2;
+#X obj 20 44 dsp;
+#X obj 20 24 tgl 15 0 empty empty empty 0 -6 0 8 -260818 -1 -1 0 1
+;
+#X floatatom 20 83 5 0 0 0 - - -;
+#X floatatom 33 65 5 0 0 0 - - -;
+#X obj 230 88 ambi_encode 2;
+#X obj 469 102 mtx_*~ 5 1 100;
+#X obj 509 11 noise~;
+#X obj 509 32 rbpq2~ 1000 2 100;
+#X obj 225 591 mtx_print;
+#X obj 230 140 mtx 5 1;
+#X msg 230 51 col 1 \$1;
+#X obj 230 109 t b a;
+#X obj 699 118 prvu~;
+#X obj 700 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
+#X obj 719 118 prvu~;
+#X obj 720 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
+#X obj 739 118 prvu~;
+#X obj 740 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
+#X obj 759 118 prvu~;
+#X obj 760 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
+#X obj 779 118 prvu~;
+#X obj 780 142 vu 15 120 empty empty -1 -8 0 8 -66577 -1 1 0;
+#X obj 115 222 loadbang;
+#X obj 442 257 mtx_*~ 2 2 100;
+#X obj 537 257 mtx_*~ 2 2 100;
+#X obj 233 240 ambi_rot 2;
+#X obj 699 273 prvu~;
+#X obj 700 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
+#X obj 719 273 prvu~;
+#X obj 720 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
+#X obj 739 273 prvu~;
+#X obj 740 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
+#X obj 759 273 prvu~;
+#X obj 760 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 0 0;
+#X obj 779 273 prvu~;
+#X obj 780 297 vu 15 120 empty empty -1 -8 0 8 -66577 -1 1 0;
+#X obj 411 257 *~ 1;
+#X obj 131 436 round_zero 1e-06;
+#X msg 147 343 real_ls \$1 \$2;
+#X msg 131 364 begin_pseudo_inverse;
+#X msg 115 385 end_pseudo_inverse;
+#X obj 115 245 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+-1;
+#X obj 131 414 ambi_decode3 2 2 8 0;
+#X msg 147 322 1 0 \, 2 45 \, 3 90 \, 4 135 \, 5 180 \, 6 225 \, 7
+270 \, 8 315;
+#X obj 425 381 mtx_*~ 8 5 0 ________________;
+#X obj 115 264 t b b b b;
+#X obj 508 75 mull~ 1 100;
+#X obj 618 38 fadtodb;
+#X obj 551 55 dbtorms;
+#X obj 618 58 - 100;
+#X obj 618 82 vsl 15 121 0 120 0 1 empty empty empty 0 -8 0 8 -260818
+-1 -1 10400 1;
+#X floatatom 637 80 5 0 0 0 - - -;
+#N canvas 0 0 462 312 __________________________ 0;
+#X obj 25 66 rvu~;
+#X obj 25 86 + 100;
+#X obj 25 106 dbtorms;
+#X obj 25 127 outlet;
+#X obj 75 66 rvu~;
+#X obj 75 86 + 100;
+#X obj 75 106 dbtorms;
+#X obj 75 127 outlet;
+#X obj 125 66 rvu~;
+#X obj 125 86 + 100;
+#X obj 125 106 dbtorms;
+#X obj 125 127 outlet;
+#X obj 175 66 rvu~;
+#X obj 175 86 + 100;
+#X obj 175 106 dbtorms;
+#X obj 175 127 outlet;
+#X obj 225 66 rvu~;
+#X obj 225 86 + 100;
+#X obj 225 106 dbtorms;
+#X obj 225 127 outlet;
+#X obj 275 66 rvu~;
+#X obj 275 86 + 100;
+#X obj 275 106 dbtorms;
+#X obj 275 127 outlet;
+#X obj 325 66 rvu~;
+#X obj 325 86 + 100;
+#X obj 325 106 dbtorms;
+#X obj 325 127 outlet;
+#X obj 375 66 rvu~;
+#X obj 375 86 + 100;
+#X obj 375 106 dbtorms;
+#X obj 375 127 outlet;
+#X obj 25 45 inlet~;
+#X obj 75 45 inlet~;
+#X obj 125 45 inlet~;
+#X obj 175 45 inlet~;
+#X obj 225 45 inlet~;
+#X obj 275 45 inlet~;
+#X obj 325 45 inlet~;
+#X obj 375 46 inlet~;
+#X connect 0 0 1 0;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 4 0 5 0;
+#X connect 5 0 6 0;
+#X connect 6 0 7 0;
+#X connect 8 0 9 0;
+#X connect 9 0 10 0;
+#X connect 10 0 11 0;
+#X connect 12 0 13 0;
+#X connect 13 0 14 0;
+#X connect 14 0 15 0;
+#X connect 16 0 17 0;
+#X connect 17 0 18 0;
+#X connect 18 0 19 0;
+#X connect 20 0 21 0;
+#X connect 21 0 22 0;
+#X connect 22 0 23 0;
+#X connect 24 0 25 0;
+#X connect 25 0 26 0;
+#X connect 26 0 27 0;
+#X connect 28 0 29 0;
+#X connect 29 0 30 0;
+#X connect 30 0 31 0;
+#X connect 32 0 0 0;
+#X connect 33 0 4 0;
+#X connect 34 0 8 0;
+#X connect 35 0 12 0;
+#X connect 36 0 16 0;
+#X connect 37 0 20 0;
+#X connect 38 0 24 0;
+#X connect 39 0 28 0;
+#X restore 425 406 pd __________________________;
+#X obj 459 490 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
+-1 0 1;
+#X obj 486 460 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
+-1 0 1;
+#X obj 486 528 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
+-1 0 1;
+#X obj 516 450 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
+-1 0 1;
+#X obj 516 538 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
+-1 0 1;
+#X obj 546 460 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
+-1 0 1;
+#X obj 546 528 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
+-1 0 1;
+#X obj 573 490 vsl 15 51 0 0.2 0 0 empty empty empty 0 -8 0 8 -1 -24198
+-1 0 1;
+#X msg 310 58 ambi_weight 1 1 1;
+#X msg 164 299 ambi_weight 1 1 0.3904;
+#X msg 89 466 ambi_weight 1 1 1;
+#X text 388 509 +90 degree;
+#X text 601 506 -90 degree;
+#X text 486 602 +-180 degree;
+#X obj 234 220 cnv 12 30 12 empty empty empty 20 12 0 14 -260818 -66577
+0;
+#X obj 231 32 cnv 12 30 12 empty empty empty 20 12 0 14 -260818 -66577
+0;
+#X floatatom 230 31 5 -180 180 0 - - -;
+#X text 232 14 phi;
+#X floatatom 233 219 5 -180 180 0 - - -;
+#X text 231 201 rho_z;
+#X obj 264 213 cnv 8 8 8 empty empty empty 20 12 0 14 -262144 -66577
+0;
+#X obj 260 24 cnv 8 8 8 empty empty empty 20 12 0 14 -262144 -66577
+0;
+#X text 341 114 ENCODING;
+#X text 309 378 DECODING;
+#X text 323 257 ROTATING;
+#X text 587 90 gain;
+#X text 24 119 iemmatrix \, iem_ambi \, iemgui;
+#X text 17 108 we need iemlib1 \, iemlib2 \,;
+#X text 78 596 IEM KUG;
+#X text 62 584 musil;
+#X text 92 584 @;
+#X text 98 584 iem.at;
+#X text 61 606 Graz \, Austria;
+#X text 13 573 (c) Thomas Musil 2000 - 2006;
+#N canvas 710 253 450 300 dependencies 1;
+#X text 41 49 this help-patch depends on several libraries:;
+#X text 90 66 iem_ambi;
+#X text 90 79 iemmatrix;
+#X text 91 91 zexy;
+#X obj 52 130 declare -stdlib extra/iem_ambi -stdlib extra/iemmatrix
+-stdlib extra/iemlib/iemlib1 -stdlib extra/iemlib/iemlib2;
+#X restore 50 650 pd dependencies;
+#X connect 0 0 2 0;
+#X connect 0 1 3 0;
+#X connect 1 0 0 0;
+#X connect 4 0 11 0;
+#X connect 5 0 12 0;
+#X connect 5 0 36 0;
+#X connect 5 1 14 0;
+#X connect 5 1 23 1;
+#X connect 5 2 16 0;
+#X connect 5 2 23 2;
+#X connect 5 3 18 0;
+#X connect 5 3 24 1;
+#X connect 5 4 20 0;
+#X connect 5 4 24 2;
+#X connect 6 0 7 0;
+#X connect 7 0 46 0;
+#X connect 9 0 5 0;
+#X connect 10 0 4 0;
+#X connect 11 0 9 0;
+#X connect 11 1 9 0;
+#X connect 12 0 13 0;
+#X connect 14 0 15 0;
+#X connect 16 0 17 0;
+#X connect 18 0 19 0;
+#X connect 20 0 21 0;
+#X connect 22 0 41 0;
+#X connect 23 0 28 0;
+#X connect 23 0 44 2;
+#X connect 23 1 30 0;
+#X connect 23 1 44 3;
+#X connect 24 0 32 0;
+#X connect 24 0 44 4;
+#X connect 24 1 34 0;
+#X connect 24 1 44 5;
+#X connect 25 0 23 0;
+#X connect 25 1 24 0;
+#X connect 26 0 27 0;
+#X connect 28 0 29 0;
+#X connect 30 0 31 0;
+#X connect 32 0 33 0;
+#X connect 34 0 35 0;
+#X connect 36 0 26 0;
+#X connect 36 0 44 1;
+#X connect 37 0 44 0;
+#X connect 38 0 42 0;
+#X connect 39 0 42 0;
+#X connect 40 0 42 0;
+#X connect 41 0 45 0;
+#X connect 42 0 37 0;
+#X connect 43 0 38 0;
+#X connect 44 0 52 0;
+#X connect 44 1 52 1;
+#X connect 44 2 52 2;
+#X connect 44 3 52 3;
+#X connect 44 4 52 4;
+#X connect 44 5 52 5;
+#X connect 44 6 52 6;
+#X connect 44 7 52 7;
+#X connect 45 0 40 0;
+#X connect 45 1 39 0;
+#X connect 45 2 43 0;
+#X connect 45 3 62 0;
+#X connect 46 0 5 1;
+#X connect 47 0 48 0;
+#X connect 47 0 49 0;
+#X connect 48 0 46 1;
+#X connect 49 0 51 0;
+#X connect 50 0 47 0;
+#X connect 52 0 56 0;
+#X connect 52 1 54 0;
+#X connect 52 2 53 0;
+#X connect 52 3 55 0;
+#X connect 52 4 57 0;
+#X connect 52 5 59 0;
+#X connect 52 6 60 0;
+#X connect 52 7 58 0;
+#X connect 61 0 4 0;
+#X connect 62 0 42 0;
+#X connect 63 0 42 0;
+#X connect 69 0 10 0;
+#X connect 71 0 25 0;