Thanks Andy,<br><br>Took me a few reads to get my head around but I think I&#39;ve got it now. Thank you. :)<br><br>(Unfortunately, abstraction was the other word that plagued me, I forgot to mention)<br><br><div class="gmail_quote">
On Sat, Oct 25, 2008 at 3:43 PM, Andy Farnell <span dir="ltr">&lt;<a href="mailto:padawan12@obiwannabe.co.uk">padawan12@obiwannabe.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Hi Afif,<br>
<br>
The dollar can have more than one meaning depending on where it is used.<br>
<br>
When it is in a message box, like [1 $1 3 $2( it behaves as a substitution<br>
operator. The nth element of a list will be substituted in the $n position<br>
and the list message is passed on. So, if a two element list 2, 4 was<br>
presented to the message box above the result would be a four element<br>
list 1, 2, 3, 4<br>
<br>
<br>
When it is used in other object boxes in the form $1 or $2 etc it becomes<br>
the $nth parameter of an abstraction. In other words, if you create an<br>
abstraction (separate pd file) called [myabs] and create an instance like<br>
[myabs 10 20 30] then inside &nbsp;that instance $1 will have a value of 10,<br>
$2 a value of 20 and $3 will equal 30.<br>
<br>
A special use is where you declare $0. This always has a unique value<br>
per patch (or abstraction instance). It can be used to prefix a variable<br>
name so that it is unique. For example, arrays must always have a unique<br>
name. You can create an array called $0-a in an abstraction, and if you<br>
make several copies of that abstraction the array names will not clash.<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Sat, 25 Oct 2008 15:15:28 +0100<br>
&quot;Arif Driessen&quot; &lt;<a href="mailto:arifd86@gmail.com">arifd86@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hello all.<br>
&gt;<br>
&gt; Since starting Uni this year I have gotten really into Pd! I&#39;m still reading<br>
&gt; up and learning the basics but have tried and tried to get my head around<br>
&gt; the $ parameter (parameter?) but can&#39;t<br>
&gt;<br>
&gt; Can someone break it down into a very basic explanation so I can take that<br>
&gt; with me to the help files for further understanding.<br>
&gt;<br>
&gt; As I see it, $ pretty much denotes storage of a variable, either float or<br>
&gt; symbol, and works only locally. When added to an object it means: take<br>
&gt; incoming value and store it under $1 (or $2 e.t.c) for recall later. If<br>
&gt; there is a series of in incoming values $1 will always refer to the first<br>
&gt; value and $2 to the second. Sometimes you don&#39;t want to recall it, but need<br>
&gt; to tell the object to store a value in order to process it with the very<br>
&gt; next action, such as in<br>
&gt;<br>
&gt; OBJECT: openpanel &gt; MESSAGE: read $1 destination &gt; OBJECT: soundfiler<br>
&gt;<br>
&gt; Am I right, somewhat right, or dangerously wrong?<br>
&gt;<br>
&gt; And lastly I get this in the Pd window everytime it starts up (Pd extended<br>
&gt; on Mac), is that heathly?:<br>
&gt;<br>
&gt; libdir loader $Revision: 1.8 $<br>
&gt; &nbsp; &nbsp; written by Hans-Christoph Steiner &lt;<a href="mailto:hans@at.or.at">hans@at.or.at</a>&gt;<br>
&gt; &nbsp; &nbsp; compiled on Jul 29 2008 at 04:03:05<br>
&gt; &nbsp; &nbsp; compiled against Pd version 0.40.3.extended<br>
&gt; /Applications/Pure<br>
&gt; Data/Pd-extended.app/Contents/Resources/extra/Gem/Gem.pd_darwin:<br>
&gt; dlopen(/Applications/Pure<br>
&gt; Data/Pd-extended.app/Contents/Resources/extra/Gem/Gem.pd_darwin, 10):<br>
&gt; Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib<br>
&gt; &nbsp; Referenced from: /Applications/Pure<br>
&gt; Data/Pd-extended.app/Contents/Resources/extra/Gem/Gem.pd_darwin<br>
&gt; &nbsp; Reason: image not found<br>
&gt; Gem: can&#39;t load library<br>
&gt; libdir_loader: added &#39;cyclone&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;zexy&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;creb&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;cxc&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;iemlib&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;list-abs&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;mapping&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;markex&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;maxlib&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;memento&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;mjlib&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;motex&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;oscx&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;pddp&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;pdogg&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;pixeltango&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;pmpd&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;rradical&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;sigpack&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;smlib&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;toxy&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;unauthorized&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;pan&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;freeverb&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;hcs&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;jmmmp&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;ext13&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;ggee&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;flib&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;ekext&#39; to the global objectclass path<br>
&gt; libdir_loader: added &#39;flatspace&#39; to the global objectclass path<br>
&gt; /Applications/Pure<br>
&gt; Data/Pd-extended.app/Contents/Resources/extra/pdp.pd_darwin:<br>
&gt; dlopen(/Applications/Pure<br>
&gt; Data/Pd-extended.app/Contents/Resources/extra/pdp.pd_darwin, 10): Library<br>
&gt; not loaded: /usr/X11R6/lib/libX11.6.dylib<br>
&gt; &nbsp; Referenced from: /Applications/Pure<br>
&gt; Data/Pd-extended.app/Contents/Resources/extra/pdp.pd_darwin<br>
&gt; &nbsp; Reason: image not found<br>
&gt; pdp: can&#39;t load library<br>
&gt; /Applications/Pure<br>
&gt; Data/Pd-extended.app/Contents/Resources/extra/pidip.pd_darwin:<br>
&gt; dlopen(/Applications/Pure<br>
&gt; Data/Pd-extended.app/Contents/Resources/extra/pidip.pd_darwin, 10): Library<br>
&gt; not loaded: /usr/X11R6/lib/libX11.6.dylib<br>
&gt; &nbsp; Referenced from: /Applications/Pure<br>
&gt; Data/Pd-extended.app/Contents/Resources/extra/pidip.pd_darwin<br>
&gt; &nbsp; Reason: image not found<br>
&gt; pidip: can&#39;t load library<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ///////////<br>
&gt;<br>
&gt; Thanks so much everyone.<br>
&gt;<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Use the source<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</font></blockquote></div><br>