[PD] send receive with several $ arguments

Miller Puckette mpuckett at man104-1.ucsd.edu
Tue Jun 5 03:14:54 CEST 2001


Hi Linium,

Well, $1- style substitution only works when the leading part of the string
is $1 (or $2, etc.)  The only way you can get double substitution is
by nesting abstractions:

suppose "foo" calls "bar b1" and "bar b2"
and suppose "bar" calls "raz $1-r1" and "raz $1-r2"

then $1-z1 and $1-z2 in the four copies of "raz" are "b1-r1-z1", ...,
"b2-r2-z2" in all 8 combinations.

cheers
Miller

On Mon, Jun 04, 2001 at 04:03:15PM +0200, Linium wrote:
> Hello,
> 
> I notice that send and receive $1-$2 (and with more $ arg) don't work
> inside a patch for which such arguments are given.
> Only the first argument with $ sign is recognized and the other(s) seem to be
> translated as null.
> 
> Am I right and are there any workarounds ?
> 
> 
> Linium



More information about the Pd-list mailing list