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 --- any_argument.pd | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 any_argument.pd (limited to 'any_argument.pd') diff --git a/any_argument.pd b/any_argument.pd new file mode 100644 index 0000000..40ed660 --- /dev/null +++ b/any_argument.pd @@ -0,0 +1,26 @@ +#N canvas 160 301 515 350 10; +#X obj 189 234 outlet; +#X text 13 259 If the argument is not equal to 0 \, use it. Pd init +arguments to 0 so unused arguments will be 0; +#X obj 73 116 select 0; +#X text 12 296 This is useful to have internals inited \, but not reset +if there is no argument specified.; +#X obj 73 190 select 0; +#X text 205 172 if 2nd arg \, then use as default value; +#X obj 73 13 inlet; +#X obj 189 13 inlet; +#X text 227 14 convenience inlet; +#X obj 73 96 list append \$1; +#X obj 73 169 list append \$2; +#X obj 73 55 bang; +#X obj 188 56 list; +#X text 194 74 arguments output symbols so this should too; +#X connect 2 0 10 0; +#X connect 2 1 0 0; +#X connect 4 1 0 0; +#X connect 6 0 11 0; +#X connect 7 0 12 0; +#X connect 9 0 2 0; +#X connect 10 0 4 0; +#X connect 11 0 9 0; +#X connect 12 0 0 0; -- cgit v1.2.1