aboutsummaryrefslogtreecommitdiff
path: root/hid_polar.pd
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-05-25 19:10:48 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-05-25 19:10:48 +0000
commite867acaf2ed863379d3d81623f0a46003524b0ce (patch)
tree60c5b04193fef392b9a57158d46b7db1d34cc84c /hid_polar.pd
parent2116ef659edc5ff21b47f567f546941ef01d94d5 (diff)
created object to calculate a vector based on dx/dy input; switched [hid_polar] to use this object as its core logic
svn path=/trunk/externals/hcs/hid/; revision=3087
Diffstat (limited to 'hid_polar.pd')
-rw-r--r--hid_polar.pd30
1 files changed, 10 insertions, 20 deletions
diff --git a/hid_polar.pd b/hid_polar.pd
index 0a3a424..36fa718 100644
--- a/hid_polar.pd
+++ b/hid_polar.pd
@@ -1,4 +1,4 @@
-#N canvas 328 234 468 411 10;
+#N canvas 189 157 472 415 10;
#X obj 30 58 inlet;
#X obj 25 313 outlet;
#X text 73 313 output range: 0 to 1;
@@ -9,11 +9,6 @@
#X text 264 57 input range: 0 to 1;
#X text 29 29 x-axis value;
#X text 221 26 y-axis value;
-#X obj 25 282 / 1.41421;
-#X text 92 282 (sqrt 2);
-#X obj 104 220 cart2pol;
-#X obj 223 85 t b f;
-#X obj 29 180 f;
#X obj 252 140 - 1;
#X obj 252 120 * 2;
#X obj 29 140 - 1;
@@ -23,19 +18,14 @@
#X text 245 371 released under the GNU GPL;
#X text 28 357 (C) Copyright 2005 Hans-Christoph Steiner <hans@at.or.at>
;
-#X obj 231 280 rad2hid;
#X text 23 331 radius;
#X text 230 332 angle;
-#X connect 0 0 18 0;
-#X connect 6 0 13 0;
-#X connect 10 0 1 0;
-#X connect 12 0 10 0;
-#X connect 12 1 23 0;
-#X connect 13 0 14 0;
-#X connect 13 1 16 0;
-#X connect 14 0 12 0;
-#X connect 15 0 12 1;
-#X connect 16 0 15 0;
-#X connect 17 0 14 0;
-#X connect 18 0 17 0;
-#X connect 23 0 5 0;
+#X obj 88 218 hid_vector;
+#X connect 0 0 13 0;
+#X connect 6 0 11 0;
+#X connect 10 0 20 1;
+#X connect 11 0 10 0;
+#X connect 12 0 20 0;
+#X connect 13 0 12 0;
+#X connect 20 0 1 0;
+#X connect 20 1 5 0;