This release brings number of fixes and improvements of Lua extension. The memory management of Lua Extension has been improved and functions to switch pages and control sets has been added.
Changelog :
Trim the label if the width of the label is bigger than the width of the pad. (reported by @RobinC)
Fix the issue of the pitchbend range. The value is now bipolar (-8192 … 8191). (reported by @petruccigp)
Add Lua functions for switching pages and control sets (Pages functions)
Call Lua functions only when pad’s on or off value is defined (requested by @oldgearguy)
Improve Lua script garbage collection. Memory is now freed automatically. (reported by @Flyweight and @oldgearguy)
Lower memory requirements of Lua function storage.
Fix issue of backlight going completely dark on hw 2.4. The range of the slider is still not 100% accurate on 2.4 but it does not allow the screen to go completely dark. (@jan)
An example preset of page switching with Lua is available at Page switching demo.
BUTTON_1 to BUTTON_6 are no longer defined constants?
No big deal since I was mainly concerned with the Patch Request button and that is still identifiable as PATCH_REQUEST
oh, you want me to actually do serious development and check log files??? lol
I didn’t look. I’ll have time later today to plug that code back in and see what is in the log file.
From the execution path, it appeared that the check was never succeeding.
well yeah, I guess it’s a(nother) misunderstanding on my part.
Based on the docs, I assumed onButtonDown() was a built in function that was invoked every time a button was pressed.
Apparently it is not. Therefore the variable was never being set therefore it never matched BUTTON_4.
Are there built-in callbacks for buttons/pots/screen touches?