[PD] $0- question
IOhannes m zmoelnig
zmoelnig at iem.at
Wed Apr 27 13:56:28 CEST 2005
Nicolas Montgermont wrote:
> Hi,
>
>
>>
>> |;
>> |$0-cnv_in_01_01 vis_size 98(
[$1( is not the same as [$1]
[$0( is not defined at all (and thus set to 0)
$-args in objects are expanded to the arguments of the abstraction; the
0th argument (which you cannot specify explicitly) is a "unique" number.
$-args in messages are expanded to the list-elements of the incoming
list; there is no $0-element (well, this is wrong: $0 might be the
selector of the list, but in the current implementation of pd it is not)
>
> The solution is to create a float $0, to link it to your message box and
> to bang it at startup :
>
> [loadbang]
> |
> [f $0]
> |
> [pack f f]
> |
> [$2-cnv_in_01_01 vis_size 98 $1(
>
> You can now receive the first value of the [pack f f] object with : [r
> $0-cnv_in_01_01 vis_size 98]
or use:
[vis_size 98 $1(
|
[s $0-cnv_in_01_01]
mfg,a,.sdr
IOhannes
More information about the Pd-list
mailing list