Hi Brien,<br><br>I got some help on a similar problem a while ago - check this out:<br><br><a href="http://lists.puredata.info/pipermail/pd-list/2006-06/039027.html" title="http://lists.puredata.info/pipermail/pd-list/2006-06/039027.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.puredata.info/pipermail/pd-list/2006-06/039027.html
</a><br><br>The basic idea is that in order to use $2 and on, you have to pack the elements into a list.&nbsp; Then when you send that list into an object, you can start accessing more than just $1.&nbsp; In the dollarsign example it's not very clear, but it makes more sense here:
<br><span class="q"><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://crca.ucsd.edu/%7Emsp/Pd_documentation/x2.htm#s6.5" target="_blank">http://crca.ucsd.edu/~msp/Pd_documentation/x2.htm#s6.5</a><br>
<br>There are a couple of things I'm not mentioning - if you use &quot;subpatches&quot; (abstractions) you can specify creation arguments.&nbsp; That's what the dollarsign example in the control examples is doing.&nbsp; But it sounds like you just need to pack into a list.
<br><br>Good luck,<br>Kevin<br></span><br><br><div><span class="gmail_quote">On 7/19/06, <b class="gmail_sendername"><a href="mailto:briencrean@eircom.net" title="mailto:briencrean@eircom.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
briencrean@eircom.net</a></b> &lt;<a href="mailto:briencrean@eircom.net" title="mailto:briencrean@eircom.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">briencrean@eircom.net</a>
&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi List,<br><br>This is my first question, I am a newbie. I apologise if this has been asked before I have tried to find the answer in the archive and documentation but to no avail.
<br><br>I have attached a simple patch below in txt format. I dont understand why when using the 'symbol' object I can instantiate the $1 variable to a string and when I try the same with the $2 variable it says &quot;error: $2: argument number out of range&quot;.
<br><br>My hope is to use the $1 and $2 as part of a message for a read message for the 'soundfiler' object so that I can read multiple sound files into multiple tables using a text file (which will contain the sound file names and table name).
<br><br>#N canvas 406 51 458 308 12;<br>#X msg 229 22 word2;<br>#X obj 98 176 print \$1;<br>#X msg 74 23 word;<br>#X obj 105 89 symbol \$1;<br>#X obj 235 87 symbol \$2;<br>#X msg 109 135 \$1;<br>#X msg 224 137 \$2;<br>#X obj 226 177 print \$2;
<br>#X connect 0 0 4 0;<br>#X connect 2 0 3 0;<br>#X connect 3 0 5 0;<br>#X connect 4 0 6 0;<br>#X connect 5 0 1 0;<br>#X connect 6 0 7 0;<br><br><br>Thanks for your help<br><br>Brien<br><br><br><br>-----------------------------------------------------------------
<br>Find the home of your dreams with eircom net property<br>Sign up for email alerts now <a href="http://www.eircom.net/propertyalerts" title="http://www.eircom.net/propertyalerts" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.eircom.net/propertyalerts</a><br><br><br><br>_______________________________________________
<br><a href="mailto:PD-list@iem.at" title="mailto:PD-list@iem.at" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">PD-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" title="http://lists.puredata.info/listinfo/pd-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.puredata.info/listinfo/pd-list</a><br></blockquote>
</div><br><br clear="all"><br>-- <br>&quot;[D]aily life [is] a theatrical landscape in which 'everyone has their price,' God (via televangelism) and happiness (smile buttons) become commodities, radio stations say they love you, and detergents have compassion for your hands.