From 2b60d55c919e7588f5aff15936e83c300b3660bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 22 Mar 2005 20:58:25 +0000 Subject: 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 --- abs/cart2pol.pd | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 abs/cart2pol.pd (limited to 'abs/cart2pol.pd') 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; -- cgit v1.2.1