HISE Logo Forum
    • Categories
    • Register
    • Login

    Best Practices For Automatic Gain Compensation

    Scheduled Pinned Locked Moved ScriptNode
    4 Posts 2 Posters 537 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.
    • N
      Noahdeetz
      last edited by

      Hey All!

      I was wondering what the general approach would be to implement automatic gain compensation for elements in script node?

      Currently I am trying to do it for the jCompressor and a custom wave shaper. Is there an ability to do it off of RMS/peak level. Open to trying any sort of strategy!

      Thanks in advance!
      Noah

      A 1 Reply Last reply Reply Quote 0
      • A
        aaronventure @Noahdeetz
        last edited by

        @Noahdeetz https://forum.hise.audio//post/69581

        N 1 Reply Last reply Reply Quote 0
        • N
          Noahdeetz @aaronventure
          last edited by

          @aaronventure Thanks for the link! Really cleared some things up for me!

          However what I am having a hard time doing is implementing it for a time-variant system such as a compressor, rather than convolution or a filter in your example. I see a "peak" node, however I would be looking for something that is RMS-based or calculated on a much less frequent time interval to where it does not update the makeup gain to the point of distortion for a plugin.

          My rough solution would be to implement a snex node that only lets x amount of signals coming from the cable_expr through per second to the gain node, that way the gain isn't always modulating to the point of causing distortion.

          A follow-up question to the peanut gallery:
          What are generally considered the best practices for getting RMS in script node?

          Thanks for the help!

          Noah

          A 1 Reply Last reply Reply Quote 0
          • A
            aaronventure @Noahdeetz
            last edited by

            @Noahdeetz said in Best Practices For Automatic Gain Compensation:

            What are generally considered the best practices for getting RMS in script node?

            Since scriptnode doesn't have a memory node that updates on each block, your options are SNEX or Faust. Default block size is 8, so if you want true peaks which means per-sample processing, wrap your stuff in a framex node.

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

            33

            Online

            1.7k

            Users

            11.8k

            Topics

            102.3k

            Posts