[PD] Number of Creation Arguments of an Abstraction

B. Bogart ben at ekran.org
Wed Jul 26 20:08:20 CEST 2006


Maybe there should be an undefined type in PD...

a "undef" or something so that you can test arguments against it. (or
another special $ variable in an abstraction would be the arg count,
like argv/argc stuff:

[float $$] <- number of args to this abstraction

[float $1] <- first arg

[float $0] <- unique ID for abstraction

I guess $-1 could also work, but looks really junky.

Actually I would prefer something like [float $argc] [float $unique]

but thats me and words...

.b.

Frank Barknecht wrote:
> Hallo,
> Mathieu Bouchard hat gesagt: // Mathieu Bouchard wrote:
> 
> 
>>On Fri, 21 Jul 2006, Frank Barknecht wrote:
>>
>>
>>>># But, of course, this gives an error when there are no creation 
>>>>arguments.
>>>
>>>As missing arguments are initialized to 0 you can use a [select 0] to
>>>filter out unwanted arguments.
>>
>>If someone really wants to have $1 = 0, how is that unwanted?
> 
> 
> It's an unwanted problem with Pd's argument passing.
> 
> Ciao





More information about the Pd-list mailing list