From 043dfe0ae677c018cde28cb84e1abe5ae1fe5205 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 29 Jan 2006 05:43:33 +0000 Subject: this is the first checkin for the new mapping lib, which is a join effort of Cyrille and Hans. We are combining Cyrille's ds_/datastream classes with my hid_* classes, and I think Cyrille has drawn on the La-Kitchen classes for working with sensors. svn path=/trunk/externals/mapping/; revision=4514 --- mapping2degrees.pd | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 mapping2degrees.pd (limited to 'mapping2degrees.pd') diff --git a/mapping2degrees.pd b/mapping2degrees.pd new file mode 100644 index 0000000..af40bca --- /dev/null +++ b/mapping2degrees.pd @@ -0,0 +1,31 @@ +#N canvas 163 40 444 356 10; +#X obj 88 30 inlet; +#X obj 89 264 outlet; +#X obj 88 56 min 1; +#X obj 88 74 max 0; +#X text 133 63 its a [hid] object \, so limit input range; +#X text 232 311 released under the GNU GPL; +#X text 15 297 (C) Copyright 2005 Hans-Christoph Steiner +; +#X text 19 9 [hid2deg]; +#X text 129 28 input range: 0 to 1 \, 0 = east/right; +#X text 143 264 output range: 0 to 360 \, 0 = north/top; +#X obj 88 100 * 360; +#X text 162 189 % is an int operation; +#X text 169 207 this saves accuracy; +#X obj 88 148 abs; +#X obj 88 123 - 450; +#X text 131 122 <- rotate zero to north; +#X text 130 148 <- change direction of rotation; +#X obj 89 202 % 3.6e+07; +#X obj 89 223 / 100000; +#X obj 89 181 * 100000; +#X connect 0 0 2 0; +#X connect 2 0 3 0; +#X connect 3 0 10 0; +#X connect 10 0 14 0; +#X connect 13 0 19 0; +#X connect 14 0 13 0; +#X connect 17 0 18 0; +#X connect 18 0 1 0; +#X connect 19 0 17 0; -- cgit v1.2.1