HISE Logo Forum
    • Categories
    • Register
    • Login

    Timer now....

    Scheduled Pinned Locked Moved Scripting
    4 Posts 3 Posters 481 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.
    • LindonL
      Lindon
      last edited by

      OK, I want a timer so in my init I've said this:

      const var presetTimer = Engine.createTimerObject();
      

      later in my onControl I've said this:

      presetTimer.startTimer(1000);
      

      but nothing is happening in the onTimer call back

      I'm doing something wrong again clearly...any ideas?

      HISE Development for hire.
      www.channelrobot.com

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @Lindon
        last edited by

        @Lindon Let's see your timer callback. If possible post a minimal example snippet.

        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 Christoph Hart

          This timer is running on the UI thread and you need to supply a function that is executed.

          The onTimer callback is for audio stuff.

          LindonL 1 Reply Last reply Reply Quote 1
          • LindonL
            Lindon @Christoph Hart
            last edited by

            @Christoph-Hart OK right that'd be why then... is there some documentation that explains this?

            HISE Development for hire.
            www.channelrobot.com

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

            55

            Online

            1.7k

            Users

            11.7k

            Topics

            101.9k

            Posts