aboutsummaryrefslogtreecommitdiff
path: root/mapping2degrees.pd
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-08-27 22:27:30 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-08-27 22:27:30 +0000
commitfe8987b009e6383ddd7150bbee734e2bac8afc22 (patch)
tree504f6d94aebeb95f3767aa0346b790667303d1aa /mapping2degrees.pd
parent1b6ee2499d403ea95066ed929749147cfffe7efb (diff)
merged in relevant changes from the v0-40 pd-extended release branch
svn path=/trunk/externals/mapping/; revision=10266
Diffstat (limited to 'mapping2degrees.pd')
-rw-r--r--mapping2degrees.pd30
1 files changed, 30 insertions, 0 deletions
diff --git a/mapping2degrees.pd b/mapping2degrees.pd
new file mode 100644
index 0000000..3675274
--- /dev/null
+++ b/mapping2degrees.pd
@@ -0,0 +1,30 @@
+#N canvas 163 40 448 360 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 <hans@at.or.at>
+;
+#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 9 0;
+#X connect 9 0 13 0;
+#X connect 12 0 18 0;
+#X connect 13 0 12 0;
+#X connect 16 0 17 0;
+#X connect 17 0 1 0;
+#X connect 18 0 16 0;