From eb23d182721b9cee66f9013bea54e32e64f51e13 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 7 Feb 2006 03:55:12 +0000 Subject: after much discussion with Frank and IO, I think these objecst are properly vetted. But they belong somewhere else, not purepd. We just need a name for such a library svn path=/trunk/abstractions/purepd/; revision=4561 --- float_argument.pd | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) (limited to 'float_argument.pd') 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; -- cgit v1.2.1