[PD] Default symbol if not set by arg
Chris McCormick
chris at mccormick.cx
Mon Apr 24 12:51:07 CEST 2006
Hey All,
When taking integer arguments in an abstraction, it's nice sometimes to
set a default if the argument is not set. For this you can do something
like:
[$1]
|
[select 0]
| /
[45( /
| /
[f ]
Or maybe something even simpler.
I would like to do something similar for symbolic arguments. I.e. if
an argument is supplied, use it, otherwise use some default or take
some other action. Unfortunately there seems to be no way to detect an
'empty' symbol. Has anyone got any ideas?
Best rgds,
Chris.
-------------------
chris at mccormick.cx
http://mccormick.cx
More information about the Pd-list
mailing list