[PD] throw/catch vs send/recieve

Frank Barknecht fbar at footils.org
Wed Aug 20 17:21:03 CEST 2003


Hallo,
derek at x-i.net hat gesagt: // derek at x-i.net wrote:

> dollar signs can be used to pass creation arguments to objects within a patch.
> 
> thus
> [delwrite $1 $2]
> inside a patch named
> [mypatch 10 1000]
> is the same as 
> [delwrite 10 1000]
> 
> for more info, check the documentation 
> control examples: 14. dollarsigns

Yes, but $0 is special in that it is replaced by a unique number for
each abstraction (not for each subpatch!).

Also it is worth mentioning that argument passing like you described
only works for abstractions (real *.pd-files) but can not be used for
passing args to subpatches like [pd somesubpatch args]:

In [pd somesubpatch 10 1000] 10 and 1000 will simply get ignored.

ciao
-- 
 Frank Barknecht                               _ ______footils.org__




More information about the Pd-list mailing list