Wow Claude, last night I rewrote several of my old externals that were originally in C, in Lua last night... And they required about 1/4 of the code that C requires. I am pretty much sold on using Lua now...<div><br class="webkit-block-placeholder">
</div><div>I guess one of the things that seemed to scream out at me was &quot;How would Lua and PD work together&quot;? While I know this is a pretty broad and general question, I was wondering, with you as the developer of the Lua stuff, just how do you see Lua fitting in with PD? What sorts of things would be best done in each language? One of the things that I like (if I understand this correctly) about using Lua, as that everything is now accessible programmatically.</div>
<div><br class="webkit-block-placeholder"></div><div>I do have a couple of questions...</div><div><br class="webkit-block-placeholder"></div><div>1. Is it possible to access from Lua, the elements of a table object that is defined in PD?</div>
<div>2. Can data struct&#39;s be accessed from Lua?<br clear="all">3. Is it possible to load Lua objects using a path? (ie [my-lua-directory/my-lua-external.lua]) If something written in Lua is supposed to look like other PD externals, then I would think this would work with Lua externals as well.</div>
<div>4. Are there things that you wouldn&#39;t do in Lua? For performance reasons? Other reasons?</div><div><br class="webkit-block-placeholder"></div><div>I guess I am asking these things because I could see it possible that I could rewrite almost everything in Lua, and then passing on the control data to the PD objects to generate the sound. One of the &quot;line of division&quot; that I was thinking about for my own stuff would be to write all the control stuff in Lua, and then feed that data to PD for the audio generation.</div>
<div><br class="webkit-block-placeholder"></div><div>Thanks for this work you have done (and to others, as well).</div><div><br class="webkit-block-placeholder"></div><div>Mike</div><div><br class="webkit-block-placeholder">
</div><div><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
</div>