@Jona Thanks for your understanding.
I just want to make the project more extensible and maintainable as much as possible.
And you will not need to learn Lua when you create modules later on.
I'm considering to use Lua partially where I think is easier to express than using Pd. (mostly for handling complex logic with many conditions)
But even if you consider learning Lua, I think it won't be that hard since people say it's one of the simplest/easiest languages to learn.
You can think of it as having a more advanced [expr] with additional ability to use openFrameworks classes and methods.
I created a simple prototype yesterday and it seems to work well so far. I need to think more about the design.
-
Ofelia Jump On Click Slider
-
@cuinjune thanks for the example. the scripting feature looks very useful
-
@cuinjune Thats Lua image looks great, I think in general may be very powerful and useful for complex stuff. I LOVE Lua in general, I used it alot in CODEA IDE for iOS, and it a very powerful and easy to learn language, and from what I understand extremely fast compared to most scripting languages.
Is there somewhere I could try out this Lua-of scripting firsthand? I noticed my download of Purr-Data loads a Lua external on boot, but I assume yours is different, and based on the openframeworks Lua, is that right? I tried out the openFrameworks Lua examples last night and they show some promise. Also I think this rather awesome GAmuza OF IDE uses ofxLua.
-
@AxiomCrux Hi, Thanks for your interest.
Yes, I also use ofxLua so if you tried ofxLua already, it will work identically.
And I added some pd related functions on top of it so users can for example, get/set value of [value] object, send messages to pd's [receive] object or read/write pd's array data using the Lua script. I'm currently trying to find a good way to add inlets/outlets.At the same time, I'm also working on creating the audio version of this so users can create audio objects(e.g. filters, effects) using Lua but there are still many problems to solve.
Do you have some experience in binding C++ functions for Lua?
I'm using SWIG to bind pd related functions and it works well in general but there are some problems I'm struggling to solve. (e.g. passing lua-table as an argument, binding a C++ function that should return a table)