<FONT face="Courier New">Chris McCormick wrote:<BR><BR>>On Wed, Feb 07, 2007 at 07:54:40PM -0700, Luke Iannini (pd) wrote:<BR>>> I'm trying to generate objects within a subpatch using [obj( messages,<BR>>> and I want those generated objects to have $0 as one of their<BR>>> arguments, e.g. [myobject $0]. Using [obj x y myobject $0( gives<BR>>> [myobject 0] (I know $0 is not for messages, just thought I'd give<BR>>> that a try), and of course [list append $0] to the object message just<BR>>> adds the interpreted $0 of the parent patch. I'd like to preserve the<BR>>> "$0". Anyone know of a way to do it?<BR>><BR>>Hi,<BR>><BR>>I think the attached patch demonstrates what you mean.<BR><BR>That works for $0, but it wouldn't with $1. If you replace the "0" with a "1" in the message box,<BR>you will still get a [test $0] object 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). <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>