aboutsummaryrefslogtreecommitdiff
path: root/hid_vector.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_vector.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_vector.pd')
-rw-r--r--hid_vector.pd32
1 files changed, 32 insertions, 0 deletions
diff --git a/hid_vector.pd b/hid_vector.pd
new file mode 100644
index 0000000..a27441e
--- /dev/null
+++ b/hid_vector.pd
@@ -0,0 +1,32 @@
+#N canvas 711 171 484 427 10;
+#X obj 30 58 inlet;
+#X obj 25 313 outlet;
+#X text 73 313 output range: 0 to 1;
+#X obj 232 312 outlet;
+#X obj 224 56 inlet;
+#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 224 85 t b f;
+#X obj 29 180 f;
+#X text 280 312 output range: 0 to 1;
+#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 11 5 [hid_vector];
+#X text 72 57 input range: -1 to 1;
+#X text 264 57 input range: -1 to 1;
+#X text 230 332 direction;
+#X text 23 331 magnatude;
+#X connect 0 0 11 0;
+#X connect 4 0 10 0;
+#X connect 7 0 1 0;
+#X connect 9 0 7 0;
+#X connect 9 1 15 0;
+#X connect 10 0 11 0;
+#X connect 10 1 9 1;
+#X connect 11 0 9 0;
+#X connect 15 0 3 0;