<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Mike McGonagle</b> &lt;<a href="mailto:mjmogo@gmail.com">mjmogo@gmail.com</a>&gt;<br>Date: Mon, Mar 3, 2008 at 6:15 PM<br>
Subject: Re: [PD] Simple tutorial on using Lua with PD<br>To: Claude Heiland-Allen &lt;<a href="mailto:claudiusmaximus@goto10.org">claudiusmaximus@goto10.org</a>&gt;<br><br><br><br><br><div class="gmail_quote"><div class="Ih2E3d">
On Mon, Mar 3, 2008 at 5:37 PM, Claude Heiland-Allen &lt;<a href="mailto:claudiusmaximus@goto10.org" target="_blank">claudiusmaximus@goto10.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>Mike McGonagle wrote:<br>
&gt; Hello all,<br>
&gt;<br>
&gt; Over the weekend, I was trying to figure out how Lua works with PD.<br>
&gt; While I have everything installed from the extended stuff, I still can&#39;t<br>
&gt; quite figure out where to begin.<br>
<br>
</div>The examples should be clear enough I hope, if you have any specific<br>
questions about a specific example then please ask :-)</blockquote><div><br></div></div><div>Well, I guess what is troubling me is that we I try to run the &quot;lua-help.pd&quot;, and click on the [load hello( message, it produces the following:</div>

<div><br></div><div><div>error: lua: error in dispatcher:</div><div>[string &quot;pd.lua&quot;]:226: attempt to index local &#39;atoms&#39; (a nil value)</div><div><br>
</div><div>And then I tried the &quot;luax-help.pd&quot; file, and everything appears to work fine.</div><div><br></div><div>I guess my troubles seem to stem from &quot;where should everything go, and what is the difference between &#39;lua&#39; and &#39;luax&#39;&quot;?</div>

<div><br></div></div><div class="Ih2E3d"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<div><br>
&gt; Is there some sort of README, or something, that explains how to work<br>
&gt; with &quot;pdlua&quot;? I did try to run the help file that is in the<br>
&gt; distribution, but when I clicked on the [load hello( message, it<br>
&gt; complained about not being able to find some &#39;atom&#39;.<br>
<br>
</div>That bug is already fixed in my SVN repository, thanks to robc for<br>
spotting it (iirc):<br>
<br>
svn co <a href="https://devel.goto10.org/svn/maximus/pdlua" target="_blank">https://devel.goto10.org/svn/maximus/pdlua</a> pdlua</blockquote><div><br></div></div><div>So, is your SVN different from the one that Pure Data is using? I downloaded the latest version this morning at about 11:30am Central time.&nbsp;</div>
<div class="Ih2E3d">
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Best place to start is reading through the examples, but there is some<br>
documentation too, and also the source code for details.</blockquote><div>&nbsp;</div></div><div>Could you explain some things about how Lua uses the search paths? And where we should be putting our files?</div><div><br>
</div><div>Also, is there some documentation about what things are provided by &#39;pd.lua&#39;? Or is all that stuff just what is needed to get things loaded and running (ie, no user accessible methods).</div><div class="Ih2E3d">
<div>&nbsp;</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
I don&#39;t use pd-extended so I don&#39;t know how much of pdlua is included,<br>
also it would be nice for pd-extended to use svn:external or whatever<br>
the mechanism is for tracking other repositories, maybe the stable<br>
releases could use my stable releases and maybe the autobuilds could use<br>
the development svn version.</blockquote><div><br></div></div><div>Any links to where I can get your latest?</div><div><br></div><div>Mike</div><div><br>
</div></div>
</div><br><br clear="all"><br>-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal.<br>—Yehudi Menuhin (1916–1999), musician