aboutsummaryrefslogtreecommitdiff
path: root/lightboard/abs_light/line_curve_smooth.pd
diff options
context:
space:
mode:
Diffstat (limited to 'lightboard/abs_light/line_curve_smooth.pd')
-rwxr-xr-xlightboard/abs_light/line_curve_smooth.pd134
1 files changed, 134 insertions, 0 deletions
diff --git a/lightboard/abs_light/line_curve_smooth.pd b/lightboard/abs_light/line_curve_smooth.pd
new file mode 100755
index 0000000..08c97fb
--- /dev/null
+++ b/lightboard/abs_light/line_curve_smooth.pd
@@ -0,0 +1,134 @@
+#N canvas 280 94 580 502 10;
+#X obj 134 375 outlet;
+#X obj 37 19 inlet;
+#X obj 134 110 route float list;
+#X obj 279 20 inlet;
+#X msg 37 86 stop;
+#X obj 279 48 unpack f f;
+#X obj 134 85 t a a;
+#N canvas 512 295 450 300 rescale 0;
+#X obj 29 27 inlet;
+#X obj 89 27 inlet;
+#X obj 103 265 outlet;
+#X msg 89 82 \$1;
+#X obj 89 54 t a b;
+#X obj 29 181 *;
+#X obj 103 237 +;
+#X obj 121 105 f;
+#X obj 89 143 -;
+#X obj 176 205 == 0;
+#X obj 176 227 sel 1;
+#X obj 176 254 outlet;
+#X connect 0 0 5 0;
+#X connect 1 0 4 0;
+#X connect 3 0 8 0;
+#X connect 4 0 3 0;
+#X connect 4 1 7 0;
+#X connect 5 0 6 0;
+#X connect 6 0 2 0;
+#X connect 6 0 7 1;
+#X connect 7 0 6 1;
+#X connect 7 0 8 1;
+#X connect 8 0 5 1;
+#X connect 8 0 9 0;
+#X connect 9 0 10 0;
+#X connect 10 0 11 0;
+#X restore 134 344 pd rescale;
+#N canvas 0 0 456 374 pow_curve 0;
+#X obj 69 45 inlet;
+#X obj 69 296 outlet;
+#X obj 308 47 inlet;
+#X obj 69 252 pow 1;
+#X obj 308 110 t f b;
+#X msg 340 133 2;
+#X obj 340 154 log;
+#X obj 322 178 *;
+#X obj 322 202 exp;
+#X connect 0 0 3 0;
+#X connect 2 0 4 0;
+#X connect 3 0 1 0;
+#X connect 4 0 7 0;
+#X connect 4 1 5 0;
+#X connect 5 0 6 0;
+#X connect 6 0 7 1;
+#X connect 7 0 8 0;
+#X connect 8 0 3 1;
+#X restore 134 289 pd pow_curve;
+#X obj 134 262 line 0 \$1;
+#X msg 134 159 1;
+#X obj 463 14 inlet;
+#X obj 188 154 route 0;
+#X obj 188 133 swap;
+#X msg 234 178 0 \, 1 \$1;
+#N canvas 0 0 678 417 curve_sigmoide 0;
+#X obj 37 79 inlet;
+#X obj 37 351 outlet;
+#X obj 37 198 * 1;
+#X obj 284 18 inlet;
+#X obj 37 278 expr $f1 / $f2;
+#X obj 37 251 - 0.5;
+#X obj 316 249 - 0.5;
+#X obj 37 118 - 0.5;
+#X obj 37 140 * 2;
+#X obj 37 304 / 2;
+#X obj 37 326 + 0.5;
+#X obj 284 105 * 10;
+#X obj 284 154 t f f;
+#X msg 304 70 0;
+#X obj 304 47 loadbang;
+#X obj 316 227 expr (exp($f1)) / ( 1 + exp($f1));
+#X obj 37 228 expr (exp($f1)) / ( 1 + exp($f1));
+#X obj 284 130 + 0.00015;
+#X connect 0 0 7 0;
+#X connect 2 0 16 0;
+#X connect 3 0 11 0;
+#X connect 4 0 9 0;
+#X connect 5 0 4 0;
+#X connect 6 0 4 1;
+#X connect 7 0 8 0;
+#X connect 8 0 2 0;
+#X connect 9 0 10 0;
+#X connect 10 0 1 0;
+#X connect 11 0 17 0;
+#X connect 12 0 2 1;
+#X connect 12 1 15 0;
+#X connect 13 0 11 0;
+#X connect 14 0 13 0;
+#X connect 15 0 6 0;
+#X connect 16 0 5 0;
+#X connect 17 0 12 0;
+#X restore 134 317 pd curve_sigmoide;
+#X obj 37 46 route stop set;
+#X msg 84 88 set \$1;
+#X text 291 367 protection si destination == depart \, alors pas de
+line \, pour reduire l'utilisation CPU;
+#X msg 201 388 stop;
+#X obj 201 365 delay 1;
+#X msg 188 178 1;
+#X connect 1 0 16 0;
+#X connect 2 0 10 0;
+#X connect 2 1 13 0;
+#X connect 3 0 5 0;
+#X connect 4 0 9 0;
+#X connect 5 0 8 1;
+#X connect 5 1 15 1;
+#X connect 6 0 2 0;
+#X connect 6 1 7 1;
+#X connect 7 0 0 0;
+#X connect 7 1 20 0;
+#X connect 8 0 15 0;
+#X connect 9 0 8 0;
+#X connect 10 0 9 0;
+#X connect 11 0 9 0;
+#X connect 12 0 21 0;
+#X connect 12 1 14 0;
+#X connect 13 0 12 0;
+#X connect 14 0 9 0;
+#X connect 15 0 7 0;
+#X connect 16 0 4 0;
+#X connect 16 1 17 0;
+#X connect 16 1 4 0;
+#X connect 16 2 6 0;
+#X connect 19 0 9 0;
+#X connect 20 0 19 0;
+#X connect 21 0 9 0;