From 480b757207c659f0c3e06277e29733b52d46bcdc Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 13 Apr 2005 03:47:20 +0000 Subject: - 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 --- rad2hid.pd | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 rad2hid.pd (limited to 'rad2hid.pd') 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 +; +#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; -- cgit v1.2.1