Thanks Dan, that makes complete sense.... but how do you work out how many samples apart the two trigger pulses are? I've looked in the library and also at the objects visible in the debug window but can't see anything that would provide this.
I've been doing the text box thing quite a lot recently. The log options looks quite nice - does this get optimised out for the published versions? But think having watch variables and break of variable change in the debugger would make the experience much better.
Maybe my lack of detailed understanding of Java coding, or the lack of detailed development documentation, but now I have a way to calculate the BPM from a gate reasonably accurately/reliably (although far from perfect), I was thinking about making it into a class that I can generalise and use ...
I have a number of modules that use GUI Update Timer for some of the onscreen display behaviour, but on some of them the timer does not seem to be firing correctly. In all cases the StartGuiUpdateTimer() is being called in the initialize section.
For example, when used as a VST3 in Cubase 10, the ...
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 ...