Timer on or off check



  • Could there be a function like Synth.getTimerState() to check if the timer is currently running - this is useful if I want to adjust the timer rate while it's running but I don't want it to start the timer if it hasn't been already. Currently I'm doing this with a separate timerState variable which I update when I turn the timer on or off.



  • Yes, this is reasonable. The method will be Synth.isTimerRunning() (the JUCE Timer class has a similar method so it's pretty easy to add this). I'll also add Synth.getTimerInterval() if I am at it.


 

3
Online

400
Users

1.3k
Topics

9.4k
Posts