HISE Logo Forum
    • Categories
    • Register
    • Login

    Synth.startTimer() Error!

    Scheduled Pinned Locked Moved Bug Reports
    7 Posts 4 Posters 358 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.
    • S
      sakorada
      last edited by

      Hi!
      Can anyone help me with this Timer error?
      i have nothing in onTimer().
      Thank you......

      Content.makeFrontInterface(980, 600);
      Synth.startTimer(1);
      
      

      Error: Line 3, column 17: All 4 timers are used {SW50ZXJmYWNlfHw3NXwzfDE3}

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @sakorada
        last edited by

        @sakorada well for a start you wont get anything useful (or probably working) out of a timer frequency of 1, start with say 5000

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • Casey KolbC
          Casey Kolb
          last edited by Casey Kolb

          @Lindon Actually the Synth.startTimer function takes an argument in seconds not milliseconds (which is a mistake I've made before), so 5000 would take quite a long time 😉

          @sakorada It's hard to know what's going on with the timer without seeing the project in more detail. It might also depend on where you're calling that function in the code. Could you post a snippet?

          Also, is there a reason you're calling Synth.startTimer right after you make the interface? Are you just trying to setup a normal timer? The Synth timer is a special kind of timer.

          Casey Kolb
          Founder & CEO of Lunacy Audio
          Composer | Producer | Software Developer

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @Casey Kolb
            last edited by

            @Lunacy-Audio said in Synth.startTimer() Error!:

            @Lindon Actually the Synth.startTimer function takes an argument in seconds not milliseconds (which is a mistake I've made before), so 5000 would take quite a long time 😉

            Silly me - thinking about the demo-timer I use...

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 0
            • S
              sakorada
              last edited by

              It will working normal if I do restart hise after those error message show up.
              It just show up sometime after I hit compile code.
              When it's show up, even I made new project (not restart hise) and just add Synth.startTimer(1).
              The error show up again.

              That's why make me think, it's Hise Bugs!
              Maybe.....

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

                Normally this message appears only if you're using more than ScriptProcessors / MidiProcessors that use a timer inside a single sound generator module (because each sound generator has a slot for 4 independent timers).

                S 1 Reply Last reply Reply Quote 0
                • S
                  sakorada @Christoph Hart
                  last edited by

                  @Christoph-Hart Thank you .
                  It's Good to know .

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

                  49

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  102.1k

                  Posts