Forum

    • Register
    • Login
    • Search
    • Categories

    max timer amount?

    General Questions
    4
    8
    36
    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.
    • DanH
      DanH last edited by

      Trying to run a ten minute timer with the below code but it's doesn't kick in after ten minutes. I also tried with 60 seconds and it took more like 2 minutes to kick in, so I'm wondering if there's a limit here. I see that Synth.startTimer works in seconds but I'm unsure how to apply it...

      GlobalMuteTimer.setTimerCallback(function()
      {
      	(CounterMute++);
      		
      	if (CounterMute > 1)
      		{
      			GlobalMute.setBypassed(0);
      			Engine.allNotesOff();
      			this.stopTimer();
      		}
      		
      });
      
      GlobalMuteTimer.startTimer(600000);
      
      d.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        d.healey @DanH last edited by d.healey

        @DanH Use a 1 second timer and check if 10 minutes have elapsed.

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

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

          @d-healey that's a good idea 🙂

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

            @DanH I have an image of you sitting at your computer just waiting patiently for ten minutes to pass so you could test your timer. 🙂

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

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

              @d-healey said in max timer amount?:

              @DanH I have an image of you sitting at your computer just waiting patiently for ten minutes to pass so you could test your timer. 🙂

              what are you saying thats not what everyone does??? 😊

              HISE Development for hire.
              www.channelrobot.com

              DanH 1 Reply Last reply Reply Quote 1
              • DanH
                DanH @Lindon last edited by

                @Lindon @d-healey at least twice today already 😆

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

                  I have an image of you sitting at your computer just waiting patiently for ten minutes to pass so you could test your timer.

                  Yes Dan please tell me you didn't do this.

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

                    @Christoph-Hart had to 😆

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

                    17
                    Online

                    982
                    Users

                    6.6k
                    Topics

                    60.7k
                    Posts