In many of my panels I use some LUA code to initialize a randomizer function like this
math.randomseed(os.time())
before I make use of math.random(x,y)
But a Mac user reported to me it doesn’t work on his version of Ctrlr.
Apparently os.time() isn’t supported on his system. Now I am looking for an alternative that has a better chance to work on all platforms, and on most versions of Ctrlr. (My main platform is Linux, I can test on Windows, but don’t own any Apple hardware)
Maybe Time
from JUCE can be used? If so, how? I am having problems finding the right LUA syntax and usage to call and use available JUCE classes. In general I have problems understanding and translating JUCE’s online documentation in LUA syntax that I can use inside Ctrlr. And not all existing JUCE classes are available inside Ctrlr.
I could use some hints and help …
-
This topic was modified 4 years, 7 months ago by m.tarenskeen.