[PD] Abstraction arguments: tell apart symbols from floats from no argument at all

hans w. koch hansw.koch at gmail.com
Sat Dec 22 19:28:01 CET 2018


i have this vanilla abstraction based on a patch by johannes, which gives 1 for argument present and 0 if absent
maybe thats for you?

best hans

-------------- next part --------------
A non-text attachment was scrubbed...
Name: checkarg.pd
Type: application/octet-stream
Size: 625 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20181222/829bfafd/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: argtest.pd
Type: application/octet-stream
Size: 176 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20181222/829bfafd/attachment-0001.obj>
-------------- next part --------------


> Am 22.12.2018 um 16:52 schrieb Matt Davey <hard.off at gmail.com>:
> 
> If you're ok with using an external library, then there is [pofutil] in the pof library which outputs a list of arguments when sent a [dollarg( message.
> 
> so, like:
> 
> [dollarg(
> |
> [pofutil]
> 
> You can then just use pd's list functions (list length, list split, etc) to pull that list apart and check its length, etc. 
> 
> [route symbol float] should do the last bit you wanted, 
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list