aboutsummaryrefslogtreecommitdiff
path: root/ambi_rot-help.pd
blob: 46d8be2688f4ff6001cac3effd917a04adbaac64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
#N canvas 51 50 838 665 10;
#X declare -stdlib extra/iem_ambi -stdlib extra/iemmatrix -stdpath
extra/zexy -stdlib extra/iemlib/iemlib2;
#X floatatom 50 76 6 -180 180 0 - - -;
#X obj 27 76 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X floatatom 126 76 6 -180 180 0 - - -;
#X text 127 59 rho_y;
#X text 52 59 rho_z;
#X floatatom 193 76 6 -180 180 0 - - -;
#X text 195 59 rho_x;
#X obj 125 149 pack 0 0 0;
#X obj 193 120 t b f;
#X obj 126 120 t b f;
#X obj 50 93 deg2rad;
#X obj 126 94 deg2rad;
#X obj 193 95 deg2rad;
#X text 14 11 ambi_rot;
#X text 128 8 AMBISONIC ROTATION;
#X text 110 32 up to 12.Order 2-dimensional;
#X text 107 20 up to 4.Order 3-dimensional or;
#X text 615 153 o-;
#X text 623 148 _____;
#X text 653 153 > +y;
#X text 615 146 |;
#X text 615 140 |;
#X text 615 134 |;
#X text 615 128 |;
#X text 615 124 ^;
#X text 611 114 +z;
#X text 603 158 +x;
#X text 614 139 +;
#X text 619 139 -;
#X text 611 139 -;
#X text 623 140 -;
#X text 564 139 +rho_x <;
#X text 626 139 .;
#X text 627 139 .;
#X text 628 139 .;
#X text 629 140 .;
#X text 630 140 .;
#X text 631 141 .;
#X text 632 142 .;
#X text 633 143 .;
#X text 437 148 _____;
#X text 469 140 |;
#X text 469 146 |;
#X text 469 134 |;
#X text 469 128 |;
#X text 469 124 ^;
#X text 465 114 +z;
#X text 468 136 +;
#X text 473 136 -;
#X text 459 136 .;
#X text 463 153 -o;
#X text 412 153 +x <;
#X text 480 136 > +rho_y;
#X text 474 158 +y;
#X text 465 136 -;
#X text 461 137 -;
#X text 458 136 .;
#X text 457 136 .;
#X text 456 137 .;
#X text 455 137 .;
#X text 454 138 .;
#X text 453 139 .;
#X text 452 140 .;
#X text 308 148 _____;
#X text 340 140 |;
#X text 340 146 |;
#X text 340 134 |;
#X text 340 128 |;
#X text 340 124 ^;
#X text 334 153 -o;
#X text 336 114 +x;
#X text 283 153 +y <;
#X text 345 158 +z;
#X text 339 136 +;
#X text 344 136 -;
#X text 336 136 -;
#X text 348 137 -;
#X text 351 136 .;
#X text 352 136 .;
#X text 353 136 .;
#X text 354 137 .;
#X text 355 137 .;
#X text 356 138 .;
#X text 357 139 .;
#X text 358 140 .;
#X text 289 136 +rho_z <;
#X text 300 60 rho_z ... rotation angle resp. z-axe;
#X text 300 71 rho_y ... rotation angle resp. y-axe;
#X text 300 82 rho_x ... rotation angle resp. x-axe;
#X obj 82 250 cnv 15 60 15 empty empty empty 20 12 0 14 -260818 -66577
0;
#X obj 151 250 cnv 15 60 15 empty empty empty 20 12 0 14 -260818 -66577
0;
#X obj 81 299 mtx_mul;
#X obj 150 229 pack 0 0 0;
#X obj 150 189 unpack 0 0 0;
#X obj 150 209 * -1;
#X obj 125 169 t l l;
#X obj 99 320 mtx_mul;
#X obj 117 340 mtx_mul;
#X obj 136 360 mtx_mul;
#X obj 183 209 * -1;
#X obj 217 209 * -1;
#X obj 150 249 ambi_rot 4;
#X obj 81 249 ambi_rot 4;
#X obj 355 476 round_zero 0.0001;
#X obj 355 418 round_zero 0.0001;
#X obj 349 359 round_zero 0.0001;
#X obj 353 299 round_zero 0.0001;
#X symbolatom 473 309 0 0 0 0 - - -;
#X symbolatom 473 344 0 0 0 0 - - -;
#X symbolatom 474 423 0 0 0 0 - - -;
#X symbolatom 474 536 0 0 0 0 - - -;
#X obj 355 496 mergefilename blank;
#X obj 353 321 mergefilename blank;
#X obj 349 380 mergefilename blank;
#X obj 355 438 mergefilename blank;
#X text 380 282 1st order;
#X text 383 341 2nd order;
#X text 378 400 3rd order;
#X text 376 456 4th order;
#X text 325 6 calculates a matrix message;
#X text 329 17 for each ambisonic order;
#X text 233 250 1.arg.: <float> ambisonic order;
#X text 283 190 inlet: <float> rotation angle in degree for 2-D;
#X text 322 204 or a list of 3 floats in degree for 3-D:;
#X text 334 216 1.) <float> rotation angle of z-axe;
#X text 334 236 3.) <float> rotation angle of x-axe;
#X text 334 226 2.) <float> rotation angle of y-axe;
#X obj 709 136 ambi_rot 4;
#X obj 709 46 ambi_rot 1;
#X obj 709 76 ambi_rot 2;
#X obj 709 106 ambi_rot 3;
#X obj 709 166 ambi_rot 5;
#X obj 709 196 ambi_rot 6;
#X obj 709 226 ambi_rot 7;
#X obj 669 256 ambi_rot 12 ________;
#X text 11 437 with "matrix" \, followed by number;
#X text 11 449 of rows and columns and the >float> elements.;
#X text 23 462 1.outlet is the ambisonic rotation matrix;
#X text 12 474 for the components of 1.order ambisonc domain.;
#X text 23 487 2.outlet is the ambisonic rotation matrix;
#X text 12 499 for the components of 2.order ambisonc domain.;
#X text 105 513 aso.;
#X text 10 425 outlets: matrix message beginning;
#X text 79 603 IEM KUG;
#X text 63 591 musil;
#X text 93 591 @;
#X text 99 591 iem.at;
#X text 62 613 Graz \, Austria;
#X text 14 580 (c) Thomas Musil 2000 - 2006;
#N canvas 4 50 450 300 dependencies 0;
#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
-stdpath extra/zexy -stdlib extra/iemlib/iemlib2;
#X restore 502 619 pd dependencies;
#X connect 0 0 10 0;
#X connect 1 0 0 0;
#X connect 2 0 11 0;
#X connect 5 0 12 0;
#X connect 7 0 95 0;
#X connect 8 0 7 0;
#X connect 8 1 7 2;
#X connect 9 0 7 0;
#X connect 9 1 7 1;
#X connect 10 0 7 0;
#X connect 11 0 9 0;
#X connect 12 0 8 0;
#X connect 91 0 106 0;
#X connect 92 0 101 0;
#X connect 93 0 94 0;
#X connect 93 1 99 0;
#X connect 93 2 100 0;
#X connect 94 0 92 0;
#X connect 95 0 102 0;
#X connect 95 1 93 0;
#X connect 96 0 105 0;
#X connect 97 0 104 0;
#X connect 98 0 103 0;
#X connect 99 0 92 1;
#X connect 100 0 92 2;
#X connect 101 0 91 1;
#X connect 101 1 96 1;
#X connect 101 2 97 1;
#X connect 101 3 98 1;
#X connect 102 0 91 0;
#X connect 102 1 96 0;
#X connect 102 2 97 0;
#X connect 102 3 98 0;
#X connect 103 0 111 0;
#X connect 104 0 114 0;
#X connect 105 0 113 0;
#X connect 106 0 112 0;
#X connect 111 0 110 0;
#X connect 112 0 107 0;
#X connect 113 0 108 0;
#X connect 114 0 109 0;