aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-11-28 23:57:26 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2004-11-28 23:57:26 +0000
commit4a14d656e1df7a81f55cdcbceb5ae229c24ed2f6 (patch)
tree5302f6faf2818feaae1d1186b259e5f828d3dd04
parentdb1f7c03d36082d18544ae40562dde5140da6bd8 (diff)
getting the help files and mapping files dialed in
svn path=/trunk/externals/hcs/hid/; revision=2342
-rw-r--r--doc/hid_centered-help.pd36
-rw-r--r--doc/hid_invert-help.pd12
-rw-r--r--doc/joystick-help.pd78
-rw-r--r--hid_centered.pd11
-rw-r--r--hid_graph.pd20
5 files changed, 109 insertions, 48 deletions
diff --git a/doc/hid_centered-help.pd b/doc/hid_centered-help.pd
new file mode 100644
index 0000000..d04fe0d
--- /dev/null
+++ b/doc/hid_centered-help.pd
@@ -0,0 +1,36 @@
+#N canvas 389 382 468 357 10;
+#X obj 5 2 cnv 15 450 20 empty empty [hid_centered] 2 11 1 18 -233017
+-66577 0;
+#X obj 422 3 pddp;
+#X text 27 320 (C) Copyright 2004 Hans-Christoph Steiner <hans@at.or.at>
+;
+#X text 244 334 released under the GNU GPL;
+#X text 98 291 For more info:;
+#X obj 202 289 all_about_hid_mapping;
+#X obj 102 234 hid_centered;
+#X obj 137 105 tgl 25 0 empty empty empty 0 -6 0 8 -225271 -1 -1 1
+1;
+#X msg 200 138 open \$1;
+#X obj 200 118 hradio 15 1 1 8 \$0-device-number empty choose_a_device
+0 -6 1 9 -262144 -1 -1 3;
+#X obj 174 118 nbx 1 14 -1e+37 1e+37 0 0 empty \$0-device-number empty
+0 -6 0 14 -166441 -1 -1 3 256;
+#X obj 157 170 joystick 0;
+#X obj 205 235 hid_centered;
+#X floatatom 205 256 5 0 0 0 Y - -;
+#X floatatom 102 255 5 0 0 0 X - -;
+#X floatatom 205 216 5 0 0 0 Y - -;
+#X floatatom 102 215 5 0 0 0 X - -;
+#X text 19 34 Convert the standard "0 to 1" [hid] format to "-1 to
+1" so that 0 is the center point of the range. With a joystick \, for
+example \, this can make the center point of the joystick (0 \, 0)
+rather than (0.5 \, 0.5).;
+#X connect 6 0 14 0;
+#X connect 7 0 11 0;
+#X connect 8 0 11 0;
+#X connect 9 0 8 0;
+#X connect 11 0 16 0;
+#X connect 11 1 15 0;
+#X connect 12 0 13 0;
+#X connect 15 0 12 0;
+#X connect 16 0 6 0;
diff --git a/doc/hid_invert-help.pd b/doc/hid_invert-help.pd
index 4b02dbe..5d7e484 100644
--- a/doc/hid_invert-help.pd
+++ b/doc/hid_invert-help.pd
@@ -1,4 +1,4 @@
-#N canvas 380 628 465 308 10;
+#N canvas 380 628 469 312 10;
#X obj 5 2 cnv 15 450 20 empty empty [hid_invert] 2 11 1 18 -233017
-66577 0;
#X obj 422 3 pddp;
@@ -6,13 +6,15 @@
;
#X text 244 284 released under the GNU GPL;
#X floatatom 153 90 5 0 0 0 - - -;
-#X floatatom 153 186 5 0 0 0 - - -;
-#X obj 153 136 hid_invert;
+#X floatatom 153 166 5 0 0 0 - - -;
+#X obj 153 126 hid_invert;
#X obj 156 71 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144
-1 -1 0 1;
-#X obj 156 203 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144
--1 -1 12700 1;
+#X obj 156 183 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 8 -262144
+-1 -1 0 1;
#X text 27 43 Inverts the stream of numbers.;
+#X text 98 233 For more info:;
+#X obj 202 231 all_about_hid_mapping;
#X connect 4 0 6 0;
#X connect 5 0 8 0;
#X connect 6 0 5 0;
diff --git a/doc/joystick-help.pd b/doc/joystick-help.pd
index 8e073b8..c09c22b 100644
--- a/doc/joystick-help.pd
+++ b/doc/joystick-help.pd
@@ -1,5 +1,5 @@
-#N canvas 31 257 660 452 10;
-#X obj 168 91 tgl 25 0 empty empty empty 0 -6 0 8 -225271 -1 -1 0 1
+#N canvas 526 230 658 456 10;
+#X obj 168 91 tgl 25 0 empty empty empty 0 -6 0 8 -225271 -1 -1 1 1
;
#X floatatom 63 234 7 0 0 3 Y-axis - -;
#X floatatom 9 234 7 0 0 3 X-axis - -;
@@ -35,9 +35,9 @@
;
#X text 218 426 released under the GNU GPL;
#X text 414 426 $Author: eighthave $;
-#X text 414 413 $Revision: 1.6 $;
-#X obj 519 372 all_about_hid;
-#X text 410 373 For more info:;
+#X text 414 413 $Revision: 1.7 $;
+#X obj 239 375 all_about_hid;
+#X text 130 376 For more info:;
#X floatatom 245 234 5 0 0 3 hat0X - -;
#X floatatom 288 234 5 0 0 3 hat0Y - -;
#X msg 220 112 open 3;
@@ -45,49 +45,60 @@
btn_8 btn_9;
#X msg 225 131 open 5;
#X obj 168 154 joystick 0;
-#N canvas 674 327 402 453 joystick_noise 1;
+#N canvas 674 327 430 481 joystick_noise 0;
#X obj 73 25 inlet;
-#X obj 181 413 dac~;
-#X obj 168 360 *~;
-#X obj 184 386 pan;
+#X obj 219 426 dac~;
+#X obj 168 376 *~;
+#X obj 201 398 linearpan~;
#X obj 70 168 hid_invert;
#X obj 70 242 mtof;
#X obj 168 313 osc~;
-#X obj 70 218 notescale 50 70;
#X msg 57 88 \; pd dsp \$1;
#X obj 70 193 hid_squareroot;
#X obj 287 11 inlet;
-#X obj 211 325 hid_log;
-#X obj 179 81 joystick 0;
+#X obj 203 323 hid_log;
+#X obj 180 65 joystick 0;
#X obj 168 287 +~;
#X obj 238 212 *~;
-#X obj 238 169 osc~;
-#X obj 299 132 * 300;
-#X obj 238 133 * 200;
-#X connect 0 0 8 0;
-#X connect 0 0 12 0;
+#X obj 238 179 osc~;
+#X obj 304 143 * 300;
+#X obj 238 143 * 200;
+#X obj 304 123 hid_square;
+#X obj 304 179 +;
+#X obj 238 123 hid_exp;
+#X obj 203 360 line~;
+#X msg 203 342 \$1 5;
+#X obj 70 218 notescale 40 80;
+#X connect 0 0 7 0;
+#X connect 0 0 11 0;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X connect 3 1 1 1;
-#X connect 4 0 9 0;
-#X connect 5 0 13 0;
+#X connect 4 0 8 0;
+#X connect 5 0 12 0;
#X connect 6 0 2 0;
-#X connect 7 0 5 0;
-#X connect 9 0 7 0;
-#X connect 10 0 12 0;
-#X connect 11 0 2 1;
-#X connect 12 0 17 0;
-#X connect 12 1 4 0;
-#X connect 12 1 16 0;
-#X connect 12 2 3 1;
-#X connect 12 3 11 0;
-#X connect 13 0 6 0;
-#X connect 14 0 13 1;
-#X connect 15 0 14 0;
-#X connect 16 0 14 1;
+#X connect 8 0 22 0;
+#X connect 9 0 11 0;
+#X connect 10 0 21 0;
+#X connect 11 0 19 0;
+#X connect 11 1 4 0;
+#X connect 11 1 17 0;
+#X connect 11 2 3 1;
+#X connect 11 3 10 0;
+#X connect 12 0 6 0;
+#X connect 13 0 12 1;
+#X connect 14 0 13 0;
+#X connect 15 0 18 0;
+#X connect 16 0 14 0;
+#X connect 16 0 18 1;
#X connect 17 0 15 0;
+#X connect 18 0 13 1;
+#X connect 19 0 16 0;
+#X connect 20 0 2 1;
+#X connect 21 0 20 0;
+#X connect 22 0 5 0;
#X restore 440 167 pd joystick_noise;
-#X obj 440 104 tgl 25 0 empty empty empty 0 -6 0 8 -225271 -1 -1 0
+#X obj 440 104 tgl 25 0 empty empty empty 0 -6 0 8 -225271 -1 -1 1
1;
#X text 333 85 Select your device and turn on to make noise:;
#X obj 619 3 pddp;
@@ -100,6 +111,7 @@ btn_8 btn_9;
the output of axis data. Move each element of the device thru its full
range to calibrate it.;
#X obj 335 215 unpack s f;
+#X obj 339 375 all_about_hid_mapping;
#X connect 0 0 31 0;
#X connect 19 0 31 0;
#X connect 28 0 31 0;
diff --git a/hid_centered.pd b/hid_centered.pd
new file mode 100644
index 0000000..4135b0e
--- /dev/null
+++ b/hid_centered.pd
@@ -0,0 +1,11 @@
+#N canvas 360 364 389 315 10;
+#X obj 71 32 inlet;
+#X obj 71 249 outlet;
+#X text 119 32 input range: 0 to 1;
+#X text 9 5 [hid_centered];
+#X obj 71 130 * 2;
+#X obj 71 152 - 1;
+#X text 127 249 output range: -1 to 1;
+#X connect 0 0 4 0;
+#X connect 4 0 5 0;
+#X connect 5 0 1 0;
diff --git a/hid_graph.pd b/hid_graph.pd
index 82b5c2e..87fb58d 100644
--- a/hid_graph.pd
+++ b/hid_graph.pd
@@ -1,16 +1,16 @@
-#N canvas 461 501 543 374 10;
-#X obj 193 9 inlet;
+#N canvas 461 501 498 334 10;
+#X obj 20 178 inlet;
#N canvas 0 22 458 308 graph5 0;
#X array \$0-hid_graph_array 100 float 2;
#X coords 0 1 100 0 100 100 1;
-#X restore -35 30 graph;
-#X obj 193 285 outlet;
-#X text 240 69 gives a range of 0-100;
-#X text 244 286 output range 0 to 1;
-#X obj 193 170 tabread \$0-hid_graph_array;
-#X text 43 176 [hid_graph];
-#X obj 193 107 * 100;
-#X text 237 11 input range: 0 to 1;
+#X restore 2 46 graph;
+#X obj 20 284 outlet;
+#X text 60 217 gives a range of 0-100;
+#X text 67 285 output range 0 to 1;
+#X obj 20 239 tabread \$0-hid_graph_array;
+#X text -4 157 [hid_graph];
+#X obj 20 216 * 100;
+#X text 60 180 input range: 0 to 1;
#X connect 0 0 7 0;
#X connect 5 0 2 0;
#X connect 7 0 5 0;