Thanks Andy,<br><br>Took me a few reads to get my head around but I think I'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"><<a href="mailto:padawan12@obiwannabe.co.uk">padawan12@obiwannabe.co.uk</a>></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 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>
"Arif Driessen" <<a href="mailto:arifd86@gmail.com">arifd86@gmail.com</a>> wrote:<br>
<br>
> Hello all.<br>
><br>
> Since starting Uni this year I have gotten really into Pd! I'm still reading<br>
> up and learning the basics but have tried and tried to get my head around<br>
> the $ parameter (parameter?) but can't<br>
><br>
> Can someone break it down into a very basic explanation so I can take that<br>
> with me to the help files for further understanding.<br>
><br>
> As I see it, $ pretty much denotes storage of a variable, either float or<br>
> symbol, and works only locally. When added to an object it means: take<br>
> incoming value and store it under $1 (or $2 e.t.c) for recall later. If<br>
> there is a series of in incoming values $1 will always refer to the first<br>
> value and $2 to the second. Sometimes you don't want to recall it, but need<br>
> to tell the object to store a value in order to process it with the very<br>
> next action, such as in<br>
><br>
> OBJECT: openpanel > MESSAGE: read $1 destination > OBJECT: soundfiler<br>
><br>
> Am I right, somewhat right, or dangerously wrong?<br>
><br>
> And lastly I get this in the Pd window everytime it starts up (Pd extended<br>
> on Mac), is that heathly?:<br>
><br>
> libdir loader $Revision: 1.8 $<br>
> written by Hans-Christoph Steiner <<a href="mailto:hans@at.or.at">hans@at.or.at</a>><br>
> compiled on Jul 29 2008 at 04:03:05<br>
> compiled against Pd version 0.40.3.extended<br>
> /Applications/Pure<br>
> Data/Pd-extended.app/Contents/Resources/extra/Gem/Gem.pd_darwin:<br>
> dlopen(/Applications/Pure<br>
> Data/Pd-extended.app/Contents/Resources/extra/Gem/Gem.pd_darwin, 10):<br>
> Library not loaded: /usr/X11R6/lib/libfreetype.6.dylib<br>
> Referenced from: /Applications/Pure<br>
> Data/Pd-extended.app/Contents/Resources/extra/Gem/Gem.pd_darwin<br>
> Reason: image not found<br>
> Gem: can't load library<br>
> libdir_loader: added 'cyclone' to the global objectclass path<br>
> libdir_loader: added 'zexy' to the global objectclass path<br>
> libdir_loader: added 'creb' to the global objectclass path<br>
> libdir_loader: added 'cxc' to the global objectclass path<br>
> libdir_loader: added 'iemlib' to the global objectclass path<br>
> libdir_loader: added 'list-abs' to the global objectclass path<br>
> libdir_loader: added 'mapping' to the global objectclass path<br>
> libdir_loader: added 'markex' to the global objectclass path<br>
> libdir_loader: added 'maxlib' to the global objectclass path<br>
> libdir_loader: added 'memento' to the global objectclass path<br>
> libdir_loader: added 'mjlib' to the global objectclass path<br>
> libdir_loader: added 'motex' to the global objectclass path<br>
> libdir_loader: added 'oscx' to the global objectclass path<br>
> libdir_loader: added 'pddp' to the global objectclass path<br>
> libdir_loader: added 'pdogg' to the global objectclass path<br>
> libdir_loader: added 'pixeltango' to the global objectclass path<br>
> libdir_loader: added 'pmpd' to the global objectclass path<br>
> libdir_loader: added 'rradical' to the global objectclass path<br>
> libdir_loader: added 'sigpack' to the global objectclass path<br>
> libdir_loader: added 'smlib' to the global objectclass path<br>
> libdir_loader: added 'toxy' to the global objectclass path<br>
> libdir_loader: added 'unauthorized' to the global objectclass path<br>
> libdir_loader: added 'pan' to the global objectclass path<br>
> libdir_loader: added 'freeverb' to the global objectclass path<br>
> libdir_loader: added 'hcs' to the global objectclass path<br>
> libdir_loader: added 'jmmmp' to the global objectclass path<br>
> libdir_loader: added 'ext13' to the global objectclass path<br>
> libdir_loader: added 'ggee' to the global objectclass path<br>
> libdir_loader: added 'flib' to the global objectclass path<br>
> libdir_loader: added 'ekext' to the global objectclass path<br>
> libdir_loader: added 'flatspace' to the global objectclass path<br>
> /Applications/Pure<br>
> Data/Pd-extended.app/Contents/Resources/extra/pdp.pd_darwin:<br>
> dlopen(/Applications/Pure<br>
> Data/Pd-extended.app/Contents/Resources/extra/pdp.pd_darwin, 10): Library<br>
> not loaded: /usr/X11R6/lib/libX11.6.dylib<br>
> Referenced from: /Applications/Pure<br>
> Data/Pd-extended.app/Contents/Resources/extra/pdp.pd_darwin<br>
> Reason: image not found<br>
> pdp: can't load library<br>
> /Applications/Pure<br>
> Data/Pd-extended.app/Contents/Resources/extra/pidip.pd_darwin:<br>
> dlopen(/Applications/Pure<br>
> Data/Pd-extended.app/Contents/Resources/extra/pidip.pd_darwin, 10): Library<br>
> not loaded: /usr/X11R6/lib/libX11.6.dylib<br>
> Referenced from: /Applications/Pure<br>
> Data/Pd-extended.app/Contents/Resources/extra/pidip.pd_darwin<br>
> Reason: image not found<br>
> pidip: can't load library<br>
><br>
><br>
><br>
> ///////////<br>
><br>
> Thanks so much everyone.<br>
><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 -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</font></blockquote></div><br>