aboutsummaryrefslogtreecommitdiff
path: root/rad2hid.pd
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-04-13 03:47:20 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2005-04-13 03:47:20 +0000
commit480b757207c659f0c3e06277e29733b52d46bcdc (patch)
tree63b412810be7243aa2259207b21623edb7eba400 /rad2hid.pd
parent132e0237c9d00eab8c3cb7a45bdc493c0166373a (diff)
- created a suite of hid objects for using polar coordinates and converting
between the range of 0-1 and degrees/radians. - made two joystick/polar examples - added some pretty colors to help patches svn path=/trunk/externals/hcs/hid/; revision=2754
Diffstat (limited to 'rad2hid.pd')
-rw-r--r--rad2hid.pd26
1 files changed, 26 insertions, 0 deletions
diff --git a/rad2hid.pd b/rad2hid.pd
new file mode 100644
index 0000000..39debb1
--- /dev/null
+++ b/rad2hid.pd
@@ -0,0 +1,26 @@
+#N canvas 258 110 429 400 10;
+#X obj 42 36 inlet;
+#X obj 140 297 outlet;
+#X text 19 9 [rad2hid];
+#X obj 141 234 % 628318;
+#X obj 127 167 moses 0;
+#X obj 141 255 / 628318;
+#X obj 42 96 * 100000;
+#X obj 41 167 % 628318;
+#X obj 42 136 moses -314159;
+#X obj 85 200 + 628318;
+#X text 10 66 % is an int operation \, we want floats \, so convert
+to large integers;
+#X text 225 351 released under the GNU GPL;
+#X text 8 337 (C) Copyright 2005 Hans-Christoph Steiner <hans@at.or.at>
+;
+#X connect 0 0 6 0;
+#X connect 3 0 5 0;
+#X connect 4 0 9 0;
+#X connect 4 1 3 0;
+#X connect 5 0 1 0;
+#X connect 6 0 8 0;
+#X connect 7 0 9 0;
+#X connect 8 0 7 0;
+#X connect 8 1 4 0;
+#X connect 9 0 3 0;