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.


  • administrators

    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.


Log in to reply
 

4
Online

343
Users

1.1k
Topics

7.1k
Posts

Looks like your connection to Forum was lost, please wait while we try to reconnect.