aboutsummaryrefslogtreecommitdiff
path: root/abs/cart2pol.pd
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-03-22 20:58:25 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-03-22 20:58:25 +0000
commit2b60d55c919e7588f5aff15936e83c300b3660bb (patch)
tree14d860de7f28083d3756ad91b627de70f26788f6 /abs/cart2pol.pd
parentc500bc542cb7cc78d6dac3f7da3bff626056b1aa (diff)
zexy-2.0:
- use of abstractions for objects that allow it - some objects are build both as externals and abstractions (as slower fallbacks) - code-layout is now 1:1 c-file<->object (this should allow for building of zexy as a collection of externals instead as a big library) - matrix-objects have moved to iemmatrix !! svn path=/trunk/externals/zexy/; revision=2641
Diffstat (limited to 'abs/cart2pol.pd')
-rw-r--r--abs/cart2pol.pd50
1 files changed, 50 insertions, 0 deletions
diff --git a/abs/cart2pol.pd b/abs/cart2pol.pd
new file mode 100644
index 0000000..b3c88a7
--- /dev/null
+++ b/abs/cart2pol.pd
@@ -0,0 +1,50 @@
+#N canvas 437 75 457 368 10;
+#X text 63 26 convert cartesian to polar coordinates;
+#X obj 99 82 inlet x;
+#X obj 82 331 outlet r;
+#X obj 179 82 inlet y;
+#X obj 259 82 inlet z;
+#X obj 179 331 outlet phi;
+#X text 294 141 r=sqrt(x^2+y^2);
+#X text 296 161 phi=atan2(y \, x);
+#X text 295 179 z=z;
+#X obj 259 331 outlet z;
+#X obj 99 125 unpack 0 0 0;
+#X obj 138 170 t f f f;
+#X obj 138 193 *;
+#X obj 82 233 +;
+#X obj 82 170 t f f f;
+#X obj 82 193 *;
+#X obj 82 265 sqrt;
+#X obj 140 285 pack 0 0 0;
+#X obj 140 305 unpack 0 0 0;
+#X obj 172 221 pack;
+#X obj 172 260 atan2;
+#X msg 172 241 \$2 \$1;
+#X text 219 241 pd>=0.38 has changed behaviour!;
+#X obj 99 105 pack \$1 \$2 \$3;
+#X text 333 8 part of zexy;
+#X connect 1 0 23 0;
+#X connect 3 0 23 1;
+#X connect 4 0 23 2;
+#X connect 10 0 14 0;
+#X connect 10 1 11 0;
+#X connect 10 2 17 2;
+#X connect 11 0 12 0;
+#X connect 11 1 12 1;
+#X connect 11 2 19 1;
+#X connect 12 0 13 1;
+#X connect 13 0 16 0;
+#X connect 14 0 15 0;
+#X connect 14 1 15 1;
+#X connect 14 2 19 0;
+#X connect 15 0 13 0;
+#X connect 16 0 17 0;
+#X connect 17 0 18 0;
+#X connect 18 0 2 0;
+#X connect 18 1 5 0;
+#X connect 18 2 9 0;
+#X connect 19 0 21 0;
+#X connect 20 0 17 1;
+#X connect 21 0 20 0;
+#X connect 23 0 10 0;