HISE Logo Forum
    • Categories
    • Register
    • Login

    One to rule them all or...

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 344 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.
    • ulrikU
      ulrik
      last edited by

      I have 4 LFO's, as it is now I read their levels inside a Synth.timer callback with the timer set to 1/100, so every 10ms I read the values.
      Is this the best way to read them or should I use 4 different timer callbacks, one for each LFO?

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      ulrikU 1 Reply Last reply Reply Quote 0
      • ulrikU
        ulrik @ulrik
        last edited by ulrik

        @ulrik as I understand it, the Synth.timer is more precise and stable than a timerObject, but what about performance and demands on the cpu?

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

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

          It depends on what you want to do with the values.

          • Display them on the interface? Use a UI timer.
          • Control some parameters in realtime as accurately as possible? Don't use a UI timer object but either the synth callback, or even more accurate, the processBlock callback of a ScriptFX - this is guaranteed to be executed for each buffer and should give you the best "resolution" (in fact the same resolution as the macro container route).
          ulrikU 1 Reply Last reply Reply Quote 1
          • ulrikU
            ulrik @Christoph Hart
            last edited by

            @Christoph-Hart Ok, good to know things :)
            Thanks!

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

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

            22

            Online

            1.7k

            Users

            11.7k

            Topics

            102.0k

            Posts