<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Mike McGonagle</b> <<a href="mailto:mjmogo@gmail.com">mjmogo@gmail.com</a>><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 <<a href="mailto:claudiusmaximus@goto10.org">claudiusmaximus@goto10.org</a>><br><br><br><br><br><div class="gmail_quote"><div class="Ih2E3d">
On Mon, Mar 3, 2008 at 5:37 PM, Claude Heiland-Allen <<a href="mailto:claudiusmaximus@goto10.org" target="_blank">claudiusmaximus@goto10.org</a>> 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>
> Hello all,<br>
><br>
> Over the weekend, I was trying to figure out how Lua works with PD.<br>
> While I have everything installed from the extended stuff, I still can't<br>
> 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 "lua-help.pd", 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 "pd.lua"]:226: attempt to index local 'atoms' (a nil value)</div><div><br>
</div><div>And then I tried the "luax-help.pd" file, and everything appears to work fine.</div><div><br></div><div>I guess my troubles seem to stem from "where should everything go, and what is the difference between 'lua' and 'luax'"?</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>
> Is there some sort of README, or something, that explains how to work<br>
> with "pdlua"? I did try to run the help file that is in the<br>
> distribution, but when I clicked on the [load hello( message, it<br>
> complained about not being able to find some 'atom'.<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. </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> </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 'pd.lua'? 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> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
I don't use pd-extended so I don'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