[PD] Get list of a the arguments of a patch without using any external?

Matt Barber brbrofsvl at gmail.com
Mon Mar 7 20:52:22 CET 2011


I think Jonathan Wilkes had a different approach as well, which I hope
he'll post.

MB

On Mon, Mar 7, 2011 at 2:28 PM, Matt Barber <brbrofsvl at gmail.com> wrote:
> If you need to get the arguments to use within the abstraction
> instance itself, you can do it using the [list-argv] patch I've
> attached (see the help file). It requires a helper subpatch on
> [list-argv]'s parent (i.e. the abstraction you want to use it in).
> This employs an idiom by IOhannes which has seemed to be pretty
> robust. Warning: there is some dynamic patching that goes on in the
> helper subpatch to make this work. I use this a lot for abstractions
> that need to be able to take a variable number of arguments.
>
> Matt
>
>
>
>> Hello Alexandre,
>>
>> I just try to write an abstraction. I don't know if it could help you,
>> it is just a try.
>> ++
>>
>> Jack
>>
>>
>>
>> Le lundi 07 mars 2011 ? 11:50 -0500, Alexandre Quessy a ?crit :
>>> Hello everyone,
>>> I was wondering if there is a way in pure-vanilla Pd to retrieve the
>>> list of arguments of an abstraction. I use zexy's [dollarg] for this,
>>> but I'm making an effort to see if I can use Pd vanilla only for some
>>> abstractions. Is there a way to do this in Pd vanilla?
>>>
>>> Thanks,
>>> --
>>> Alexandre Quessy
>>> http://alexandre.quessy.net/
>>>
>>> _______________________________________________
>>> Pd-list at iem.at mailing list
>>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: getArgsAbs.zip
>> Type: application/zip
>> Size: 1514 bytes
>> Desc: not available
>> URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110307/cbf7378f/attachment.zip>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: not available
>> Type: application/pgp-signature
>> Size: 490 bytes
>> Desc: This is a digitally signed message part
>> URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110307/cbf7378f/attachment.pgp>
>>
>> ------------------------------
>>
>> _______________________________________________
>> Pd-list mailing list
>> Pd-list at iem.at
>> to manage your subscription (including un-subscription) see
>> http://lists.puredata.info/listinfo/pd-list
>>
>>
>> End of Pd-list Digest, Vol 72, Issue 29
>> ***************************************
>>
>



More information about the Pd-list mailing list