Getting sample accurate time from Live: a solution

    Jun 21 2020 | 11:24 am
    Hi all,
    I'm not quite sure if I'm reinventing the wheel here, but I haven't been able to easily get sample accurate time (in seconds, in samples, or in beats/ticks) from Live inside an M4L device. So I made my own gen-based solution and am posting it here so that others may either: 1. use it or 2. tell me how I'm doing this ass-backwards and there's much simpler ways to get the same results (cause honestly I have a hard time believing that it's really this complicated to simply know the current time on a sample-by-sample basis?)
    either way, I'd be happy to receive feedback!