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

Christof Ressi christof.ressi at gmx.at
Sat Dec 22 17:15:24 CET 2018


if you're ok with externals you can also use [dollarg] from iemlib or [canvasargs] from iemguts. for a hacky vanilla solution, see attached patch. I'm sure there are more ways, this is just one that I remembered.
 
Christof 

Gesendet: Samstag, 22. Dezember 2018 um 16:52 Uhr
Von: "Matt Davey" <hard.off at gmail.com>
An: "Peter P." <peterparker at fastmail.com>
Cc: pd-list <pd-list at iem.at>
Betreff: Re: [PD] Abstraction arguments: tell apart symbols from floats from no argument at all

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arg-test.pd
Type: application/octet-stream
Size: 117 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20181222/3eb219fc/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arg-test-abs.pd
Type: application/octet-stream
Size: 452 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20181222/3eb219fc/attachment-0001.obj>


More information about the Pd-list mailing list