<FONT face="Courier New">Chris McCormick wrote:<BR><BR>&gt;On Wed, Feb 07, 2007 at 07:54:40PM -0700, Luke Iannini (pd) wrote:<BR>&gt;&gt; I'm trying to generate objects within a subpatch using [obj( messages,<BR>&gt;&gt; and I want those generated objects to have $0 as one of their<BR>&gt;&gt; arguments, e.g. [myobject $0]. Using [obj x y myobject $0( gives<BR>&gt;&gt; [myobject 0] (I know $0 is not for messages, just thought I'd give<BR>&gt;&gt; that a try), and of course [list append $0] to the object message just<BR>&gt;&gt; adds the interpreted $0 of the parent patch. I'd like to preserve the<BR>&gt;&gt; "$0". Anyone know of a way to do it?<BR>&gt;<BR>&gt;Hi,<BR>&gt;<BR>&gt;I think the attached patch demonstrates what you mean.<BR><BR>That works for $0, but&nbsp;it wouldn't with $1. If you replace the "0" with a "1" in the message box,<BR>you will still get&nbsp;a [test $0] object&nbsp;in the result window.<BR><BR>I think that "makefilename" just doesn't work with multipl
 e
parameters:<BR>any "%s" or "%d" except the first one, will evaluate to "(null)" or 0 respectively.<BR><BR>Furthermore, the following will make PD crash:<BR><BR>[list cat 2 dog(<BR>|<BR>|<BR>[makefilename foo%s_%d_%s]<BR>|<BR>|<BR>[print]<BR><BR>Maybe it just isn't meant to handle lists (or messages that aren't just a single float or symbol).&nbsp;<BR><BR>However, it is possible to "compose a filename" with multiple parameters using the trick described<BR>in the makefilename help patch, which would permit creating objects with $1 or $whatever.<BR><BR>Thanks Chris for the trick, I also needed that :)<BR><BR>Bye<BR>M.</FONT><br><p><font face=Verdana,Arial size=2>----<br>
 Email.it, the professional e-mail, gratis per te: <a href="http://www.email.it/cgi-bin/start?sid=3" 
 target="_blank" >clicca qui</a> <br>
 <br>
 Sponsor:<br>
 Prestiti Online. Scopri subito se sei finanziabile. in 24 ore senza spese né anticipi, clicca qui
<br>
 <a href="http://adv.email.it/cgi-bin/foclick.cgi?mid=2908&d=20070208" target="_blank" >Clicca qui</a> </font><br>