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 --- hid2rad.pd | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 hid2rad.pd (limited to 'hid2rad.pd') diff --git a/hid2rad.pd b/hid2rad.pd new file mode 100644 index 0000000..b2c3f19 --- /dev/null +++ b/hid2rad.pd @@ -0,0 +1,22 @@ +#N canvas 287 246 432 344 10; +#X obj 88 30 inlet; +#X obj 89 264 outlet; +#X text 19 9 [hid2rad]; +#X obj 89 198 * 6.28318; +#X obj 88 101 moses 0.5; +#X obj 88 56 min 1; +#X obj 88 74 max 0; +#X obj 147 133 - 1; +#X text 133 63 its a [hid] object \, so limit input range; +#X text 129 28 input range: 0 to 1; +#X text 143 264 output range: -pi to pi; +#X text 232 311 released under the GNU GPL; +#X text 15 297 (C) Copyright 2005 Hans-Christoph Steiner +; +#X connect 0 0 5 0; +#X connect 3 0 1 0; +#X connect 4 0 3 0; +#X connect 4 1 7 0; +#X connect 5 0 6 0; +#X connect 6 0 4 0; +#X connect 7 0 3 0; -- cgit v1.2.1