aboutsummaryrefslogtreecommitdiff
path: root/ff/ff-spring-help.pd
diff options
context:
space:
mode:
Diffstat (limited to 'ff/ff-spring-help.pd')
-rw-r--r--ff/ff-spring-help.pd65
1 files changed, 65 insertions, 0 deletions
diff --git a/ff/ff-spring-help.pd b/ff/ff-spring-help.pd
new file mode 100644
index 0000000..980ff2c
--- /dev/null
+++ b/ff/ff-spring-help.pd
@@ -0,0 +1,65 @@
+#N canvas 173 83 685 588 10;
+#X msg 46 262 bang;
+#X msg 102 261 stop;
+#X text 39 242 with a;
+#X msg 141 129 delay 250;
+#X msg 141 104 interval 500;
+#X text 275 130 delay before starting;
+#X text 239 104 minimum time between triggers;
+#X text 292 192 coefficients that determine how fast;
+#X text 292 204 the effect increases in that direction;
+#X text 292 215 range = [-1 \, 1];
+#X text 261 279 width of the dead-zone \, where there is no effect
+;
+#X text 261 303 range is (like the joystick output) [-32768 \, 32767]
+;
+#X text 262 290 one for each axis;
+#X text 262 332 position of the dead-zone in the joystick range;
+#X text 262 344 one for each axis;
+#X text 262 356 range is also [-32768 \, 32767];
+#X floatatom 204 411 5 0 0 0 - - -;
+#X floatatom 331 458 5 0 0 0 - - -;
+#X floatatom 267 458 5 0 0 0 - - -;
+#X text 200 388 duration in ms \, 0 is infinite;
+#X floatatom 394 458 5 0 0 0 - - -;
+#X floatatom 458 461 5 0 0 0 - - -;
+#X text 267 422 levels \, range = [0 \, 1];
+#X text 266 439 right;
+#X text 332 438 left;
+#X text 392 438 up;
+#X text 458 439 down;
+#X text 34 229 start;
+#X text 4 79 ff-friction has the same methods;
+#X text 5 33 ff-spring is a "conditional effect".;
+#X obj 141 484 ff-spring 0 2000 0.5 0.5 0 0.1;
+#X text 141 507 creation arguments are device-number \, duration right-
+\, left- \, up- and down-level;
+#X msg 141 281 deadband-x 1200;
+#X msg 141 306 deadband-y 300;
+#X msg 141 335 center-x 0;
+#X msg 141 358 center-y 20000;
+#X msg 141 195 left-coeff 1;
+#X msg 141 173 right-coeff 1;
+#X msg 141 219 up-coeff -0.7;
+#X msg 141 242 down-coeff -1;
+#X text 6 49 these effects set up 2 axes (x and y) and you specify
+the parameters for each direction.;
+#X text 139 540 the outlet gives the effect number on the device or
+-1 if it is not loaded.;
+#X connect 0 0 30 0;
+#X connect 1 0 30 0;
+#X connect 3 0 30 0;
+#X connect 4 0 30 0;
+#X connect 16 0 30 1;
+#X connect 17 0 30 3;
+#X connect 18 0 30 2;
+#X connect 20 0 30 4;
+#X connect 21 0 30 5;
+#X connect 32 0 30 0;
+#X connect 33 0 30 0;
+#X connect 34 0 30 0;
+#X connect 35 0 30 0;
+#X connect 36 0 30 0;
+#X connect 37 0 30 0;
+#X connect 38 0 30 0;
+#X connect 39 0 30 0;