Forum

    • Register
    • Login
    • Search
    • Categories

    Smooth modulator with .getCurrentLevel();

    Scripting Forum
    2
    4
    70
    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.
    • T
      tomekslesicki last edited by tomekslesicki

      Is there a way to smooth modulation data when using...?

      var lfoval = LFORouterGainMod.getCurrentLevel();
      

      I'm using it to route LFO to a few destinations in an FX plugin but even when I set the timer to a really low value, it still is a little steppy.

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

        @tomekslesicki said in Smooth modulator with .getCurrentLevel();:

        Is there a way to smooth modulation data when using...?

        var lfoval = LFORouterGainMod.getCurrentLevel();
        

        I'm using it to route LFO to a few destinations in an FX plugin but even when I set the timer to a really low value, it still is a little steppy.

        well off the top of my head you could average the last few values....

        HISE Development for hire.
        www.channelrobot.com

        T 1 Reply Last reply Reply Quote 0
        • T
          tomekslesicki @Lindon last edited by

          @Lindon tell me more 🙂

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

            @tomekslesicki in your timer call back:

            instead of using the LFO value - add the LFO value to an array (of say 5 values) and us the average of these 5 values

            Might work - might not but its pretty simple to build and try...

            HISE Development for hire.
            www.channelrobot.com

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

            5
            Online

            1.1k
            Users

            7.0k
            Topics

            64.6k
            Posts