Yeah, on the one hand accurate clocking seems like a job for the C/SC layers, not Lua. On the other hand, the obvious things to sync to right now are MIDI, OSC, and Ableton Link, and the first two of those are currently managed from the Lua side.
My immediate motivation is that next week for a performance I want to use the Norns in conjunction with DIN midi out from my partner’s rig, and send midi clock to a uMidi in my euro lunchbox. So far the Lua side seems more than up to this task, I sync’d playfair to an Analog Rytm and it was rock solid from 30-400bpm.
Whatever we build in Lua now can help guide requirements for a more carefully considered native code implementation. I’m not super familiar with Supercollider but its clock abstractions look great and I think that’s a good model to follow for now with a path to various futures.
I somehow missed the Github issue about clocking when I looked earlier, I will put more thoughts over there later!