[PD] another basic pd question/creation arguments in abstraction
IOhannes m zmoelnig
zmoelnig at iem.at
Thu Oct 18 10:00:00 CEST 2007
Atte André Jensen wrote:
> Roman Haefeli wrote:
>> if '0' is not part of your
>> intended argument range, you can check in your abstraction, if the
>> argument is '0' and assume, when it is '0', that it was not specified.
> Ok, thanks.
> What can I do then about audio rate inlets? As far as I understand they
> supply continious streams thus overriding and creation arguments I might
> supply. Is there something like [sel~] that'll only send the signal on
> should it be different from 0?
this is more tricky.
what you are really asking for is a way to detect whether an inlet is
connected. i don't know of any way.
control signals can be "0" too...
of course you could do something like
| [==~] [default_signal~]
| | |
| [*~ ]
but that is most likely not what you want.
there is also a [sigzero~] object in zexy which gives you information on
whether the entire signal block is "0" (you could do this with [env~]
but basically i would suggest to not do something like that at all.
More information about the Pd-list