HISE Logo Forum
    • Categories
    • Register
    • Login

    Timer on or off check

    Scheduled Pinned Locked Moved Feature Requests
    2 Posts 2 Posters 838 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by d.healey

      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.

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        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.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        29

        Online

        1.8k

        Users

        12.1k

        Topics

        105.0k

        Posts