Hello Ctrlrs,
I’ve been unfortunately too busy with work to get much music, and even less ctrlr programming done. I am however back at it, and after having completely lost this afternoon’s lua scripting work, I decided it would be better to externalize the lua files and edit them in another editor.
As I’m already familiar, and in love with I was hoping it would be nice and easy to collect all the functions there and use the “add files” option from the Lua editor in CTRLR. It would make things like renaming, multiple line editing of sysex and such really a breeze.
Thus, I set up to copy paste every method in its own individual -lua file.
I then re-assigned the modulators to the files directly which are all saved as “functionName.lua” and thanks to that, after adding the files via the lua editor, all my methods were there and available to use.
However, the exact same code working when written directly in a method in ctrlr doesn’t work when grabbed from a file. I systematicaly get this error:
add_file_and_line() failed at lua_getstack, unknown error occured
Callback error: [UPdco1WaveMessage.lua] lua runtime error .
I am sure I am missing something very obvious here, but I must say I would love some help. I was 50% in managing to have all the parameters of the MKS70/JX10 update on every patch change, but all is lost now.
I would really like to be able to work on the coding directly in Sublime and would definitely recommend to others to use it too 🙂
http://opuswerk.tumblr.com
www.soundcloud.com/opuswerk
www.facebook.com/opuswerk