[PD] creation arg, distinction between 0 and no arg, WAS Re: Splitting Objects

Cyrille Henry ch at chnry.net
Tue Sep 25 16:08:54 CEST 2012


hello,

a dirty hack allow distinction between no argument and a 0 float arg.
see attachment.
cheers
c


Le 25/09/2012 15:45, Patrice Colet a écrit :
>
>> De: "Patrice Colet" <colet.patrice at free.fr>
>>> De: "Funs Seelen" <funsseelen at gmail.com>
>>
>>> Speaking about creation arguments: if none are given for
>>> abstractions
>>> the default value is always "0" (at least I never figured out a way
>>> to
>>> give another default value *). For C-objects it is possible to use
>>> any
>>> float value as default.
>>
>>
>> [loadbang]
>> |
>> [$1]
>> |
>> [sel 0]
>> |
>> [my default value(
>>
>
> indeed it doesn't seem possible to set a default value and keep 0 as another value
>
> _______________________________________________
> 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: default_arg.pd
Type: application/puredata
Size: 454 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120925/e3c65020/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: default_arg-help.pd
Type: application/puredata
Size: 396 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120925/e3c65020/attachment-0001.bin>


More information about the Pd-list mailing list