so, to elaborate, my current genius method of doing this now is sending a message to a js object whenever I need to initiate a metro, js gets Task object ticking, Task callback sends a message out and back into jit.gl.lua. In my tests it seemed like below a certain timing threshold max would just crash. just a guess since I didn’t have any error messages to work with, but It’s not hard to imagine all sorts of scheduling issues coming out of this.
looks like it. jit.new for using jitter objects and some C bindings to OpenGL ? would be nice if I could take a look at those libraries but I’m guessing I can’t.
so, essentially, once I get a c lib loaded it’ll have access to everything an external would ?
I keep running into fossil evidence of lua~ which I suppose did exactly that, exposed msp to a lua script, but given I can’t find an active download link I might assume that one’s extinct.
but uhhhhhhhhh yea maybe since this is my first go at things I should keep it simple and “quantize” my events to one metro. def something I considered. is 1ms as far as I can take that down ? In my head that seemed too high to get something musical, but I haven’t tested it yet. will for sure start on the easy route now that it’s back in play.
as a bonus with that method I suppose I can sync to the global when in m4l for the tempo-friendlies
thanks for the goods @germinal @zebra