I’ve been messing around trying to make some tempo aware features and it requires a fair bit of scaffolding to calculate the pulses, and it mostly works. But I’m wondering if maybe the Intech gods would consider some system functions like:
system_bpm() — returns current BPM (float or integer)
system_period() — returns ms per quarter note (float or integer)
clock_phase() for phase within a beat if we want to be fancy
Scanning for the specific midi message and doing the calculations for bpm in the timer + system takes up a fair bit of space. It would be super nice to be able to grab it organically and make tempo driven cc ratchets, lfos, or pulse leds in time etc.
Any boilerplate bpm code that somebody wants to share, maybe I’m overcomplicating it?