View Full Version : ReaLua Alpha
toddhisattva
12-18-2008, 03:29 PM
1. There are nascent docs in skinny HTML.
2. There is source code and a VC solution file.
3. There is of course the plugin.
Folks, I think we can call this an Alpha release! Party time!
The documentation is focused towards using ReaLua, so there are no build tips in it. So here they are:
If you want to compile it, you must get the lua5.1.lib file from
http://luaforge.net/frs/download.php/3706/lua5_1_4_Win32_vc8_lib.zip
It may work with others of the binaries but I don't know.
Please note that Visual C++ is not my native environment, so I probably won't be able to help anyone compile it if there are problems. I may have used absolute paths or something just as bad. Sorry in advance, but if you're trying to compile it you probably have more VC-fu than I.
And as always, use at your own risk. Back up everything and then backup the backups before downloading ReaLua.
Guod3
12-21-2008, 05:43 AM
Looks like quite a piece of work.
It would be great to have some stock examples ready to run, downloadable with the plugin.
toddhisattva
01-10-2009, 01:55 PM
Looks like quite a piece of work.
It would be great to have some stock examples ready to run, downloadable with the plugin.
I think it's called "examples.lua" in the source directory maybe I'll copy it to other places next time.
toddhisattva
01-10-2009, 02:13 PM
Big changes!
http://forum.cockos.com/attachment.php?attachmentid=4398&stc=1&d=1231625807
The console window is replaced with a Windows window. Please read doc/window.html to see how to work it. Hint: ctrl-Enter sends the input to Lua. Plain-ole Enter lets you type multiple lines of Lua.
Still the same ALT-0 (alt-zero) to start ReaLua.
I haven't seen the BSOD since getting rid of the console window, which always was a hack. But still, back up and back up your back ups before using.
Remember, it's ctrl-Enter to send your lines to Lua.
-T
PS: Anybody trying this? Does the .zip unzip? Does the dll crash on you? Does the source build for you? Do the examples run? Are the docs too snarky? Developing minds want to know ;-)
Xenakios
01-10-2009, 06:01 PM
Briefly tried...I was able to succesfully run functions like PrintResampleModes() and PrintInputChannelNames() out of the examples. Function RandomPan() caused a message to appear that it tries to call a global GetNumTracks() which has value NIL. I am not that familiar how Lua works etc, so maybe that was a pilot error... ;)
I am not a big fan of how the Lua console opens up as a new app type window. (Adds it to the Windows Taskbar.) Since you live in Reaper's process address space, I believe, could you not make the window live completely inside Reaper?
toddhisattva
01-15-2009, 03:16 PM
Briefly tried...I was able to succesfully run functions like PrintResampleModes() and PrintInputChannelNames() out of the examples. Function RandomPan() caused a message to appear that it tries to call a global GetNumTracks() which has value NIL. I am not that familiar how Lua works etc, so maybe that was a pilot error... ;)
Nope, that's my fault, simply needed to put the "reaper." table in
front of "GetNumTracks()" in the example code, for it to be "reaper.GetNumTracks()"
(I used to have a global GetNumTracks() in the example code, to save typing. In Lua, "uninitialized" things produce nils. So if you try to run a function that's not there, you get the error you saw.)
I am not a big fan of how the Lua console opens up as a new app type window. (Adds it to the Windows Taskbar.) Since you live in Reaper's process address space, I believe, could you not make the window live completely inside Reaper?I'll give it a whirl. I like it the way it is, since it can be dismissed easily enough. Maybe I'll learn to like your way :-) I think it's been your way, just takes a child reference or something like that.
toddhisattva
02-02-2009, 03:48 PM
Here is Alpha Three
- Easier-on-the-eyes font
http://forum.cockos.com/attachment.php?attachmentid=4535&stc=1&d=1233614655
- dump() function to put the Output Area text somewhere
- More better examples:
-- Lua iterators from enum-functions
-- variety of panning functions
-- dump track and FX info into HTML for browsing
-- send commands to Reaper:
--- with new keystack() function
--- reaper.Main_OnCommand() - calling some of Xenakios's commands too ;-)
As well as general bugfixin and documenting.
ReaLua has an email address! Send bug reports and fixes, feature requests, scripts, and script requests to reaper.lua@gmail.com
Xenakios
02-02-2009, 04:17 PM
Thanks a lot for your efforts! :) While I haven't been playing around with ReaLua much myself (too deep in my own C++ stuffs to learn Lua and ReaLua well now), I hope other people have found about it's potential and are just too busy hacking around with it to reply and thank you here! ;)
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.