aboutsummaryrefslogtreecommitdiff
path: root/float_argument.pd
diff options
context:
space:
mode:
Diffstat (limited to 'float_argument.pd')
-rw-r--r--float_argument.pd37
1 files changed, 28 insertions, 9 deletions
diff --git a/float_argument.pd b/float_argument.pd
index ad44b17..a524549 100644
--- a/float_argument.pd
+++ b/float_argument.pd
@@ -1,14 +1,33 @@
-#N canvas 390 291 482 332 10;
-#X obj 143 96 f \$1;
-#X obj 244 203 outlet;
-#X obj 143 14 loadbang;
+#N canvas 554 317 498 348 10;
+#X obj 214 233 outlet;
#X text 40 248 If the argument is not equal to 0 \, use it. Pd init
arguments to 0 so unused arguments will be 0;
-#X obj 194 153 select 0;
-#X obj 142 51 trigger bang bang;
+#X obj 113 116 select 0;
#X text 39 285 This is useful to have internals inited \, but not reset
if there is no argument specified.;
-#X connect 0 0 4 0;
+#X obj 113 190 select 0;
+#X obj 113 169 float \$2;
+#X obj 113 96 float \$1;
+#X text 176 181 if 2nd arg \, then use as default value;
+#X obj 113 14 inlet;
+#X obj 259 13 inlet;
+#X text 297 14 convenience inlet;
+#X obj 229 59 route float;
+#X text 316 56 just in case;
+#X obj 261 138 purepd_error float_argument;
+#X obj 261 92 bang;
+#X obj 114 49 bang;
+#X text 5 14 loadbang inlet;
+#X msg 261 114 wrong data type on right inlet;
#X connect 2 0 5 0;
-#X connect 4 1 1 0;
-#X connect 5 0 0 0;
+#X connect 2 1 0 0;
+#X connect 4 1 0 0;
+#X connect 5 0 4 0;
+#X connect 6 0 2 0;
+#X connect 8 0 15 0;
+#X connect 9 0 11 0;
+#X connect 11 0 0 0;
+#X connect 11 1 14 0;
+#X connect 14 0 17 0;
+#X connect 15 0 6 0;
+#X connect 17 0 13 0;