From dafe6778ac1b050ad7ee8f2f4088d96b97487331 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 8 Apr 2009 04:09:12 +0000 Subject: since there are lots of conversion possibilities, these need to be more explicity svn path=/trunk/externals/mapping/; revision=10978 --- polar2cartesian.pd | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 polar2cartesian.pd (limited to 'polar2cartesian.pd') diff --git a/polar2cartesian.pd b/polar2cartesian.pd new file mode 100644 index 0000000..9a69df5 --- /dev/null +++ b/polar2cartesian.pd @@ -0,0 +1,46 @@ +#N canvas 38 370 528 390 10; +#X obj 160 230 zexy/pol2cart; +#X obj 11 36 inlet radius; +#X obj 161 36 inlet angle; +#X text 12 18 input range: 0 to 1; +#X text 161 19 input range: 0 to 1; +#X obj 106 332 outlet x; +#X obj 203 334 outlet y; +#X obj 334 36 inlet z; +#X text 334 19 input range: 0 to 1; +#X obj 300 335 outlet z; +#X obj 128 147 float; +#X obj 205 147 float; +#X obj 315 146 float; +#X obj 128 76 trigger bang float bang; +#X obj 334 76 trigger bang bang float; +#X obj 204 183 mapping2radians; +#X obj 128 183 * 1.41421; +#X obj 204 271 / 2; +#X obj 204 291 + 0.5; +#X obj 106 269 / 2; +#X obj 106 289 + 0.5; +#X text 261 276 TODO: z needs to be properly scaled; +#X text 355 360 released under the GNU GPL; +#X text 8 360 (C) Copyright 2008 Hans-Christoph Steiner +; +#X connect 0 0 19 0; +#X connect 0 1 17 0; +#X connect 1 0 10 0; +#X connect 2 0 13 0; +#X connect 7 0 14 0; +#X connect 10 0 16 0; +#X connect 11 0 15 0; +#X connect 12 0 0 2; +#X connect 13 0 10 0; +#X connect 13 1 11 0; +#X connect 13 2 12 0; +#X connect 14 0 10 0; +#X connect 14 1 11 0; +#X connect 14 2 12 1; +#X connect 15 0 0 1; +#X connect 16 0 0 0; +#X connect 17 0 18 0; +#X connect 18 0 6 0; +#X connect 19 0 20 0; +#X connect 20 0 5 0; -- cgit v1.2.1