Calculating BPM/Sync rate from a gate/trigger input

Post Reply
AndyMac
Posts: 39
Joined: Wed Sep 05, 2018 6:16 pm

Sat Feb 09, 2019 12:11 pm

I am trying to work out the best way to do this accurately so that some of my modules can use this, as well as the host BPM, to control their speed. I am currently using System.nanoTime() on the leading edge of the gates, but seems to have quite a bit of drift this way and so am using averaging (but this has its own issues).

Is there an example of how best to do this, or even some code snippets to help with this?

Knowing that you have some modules which appear to be using this capability, it would be great if the process could be made available in the Library so that this capability could be easily used consistently across modules.
Post Reply