Forum

    • Register
    • Login
    • Search
    • Categories

    One to rule them all or...

    Scripting Forum
    2
    4
    77
    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.
    • ulrik
      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 13, Xcode 14.0.1
      http://musikboden.se

      ulrik 1 Reply Last reply Reply Quote 0
      • ulrik
        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 13, Xcode 14.0.1
        http://musikboden.se

        1 Reply Last reply Reply Quote 0
        • Christoph Hart
          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).
          ulrik 1 Reply Last reply Reply Quote 1
          • ulrik
            ulrik @Christoph Hart last edited by

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

            Hise Develop branch
            MacOs 13, Xcode 14.0.1
            http://musikboden.se

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

            17
            Online

            1.1k
            Users

            6.8k
            Topics

            62.4k
            Posts