Forum
    • Categories
    • Register
    • Login

    Auto-Gain?

    Scheduled Pinned Locked Moved Scripting
    1 Posts 1 Posters 13 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.
    • ChazroxC
      Chazrox
      last edited by

      Im trying to conceptualize how to add an auto make-up gain feature that listens to the input audio over a few seconds, averages a max peak value then adjusts a gain knob.

      So far I have a scriptnode with global cables getting peak data for L+R master output channels. Thats ready to read data. Im not that good at dealing with Buffers yet. Im guessing we have to fill a buffer of a certain length then use the api's I seen about getting peak values.

      Can anyone point me in the right direction please?

      Here's the flow:

      1. Click "auto-gain"
      2. Play a few seconds of audio
      3. Buffer collects peak values
      4. Math/ average peak values
      5. return average peak value.
      6. Adjust volume to pre-defined output.

      ie. User sets desired output to be "-6db" , plays the track, output adjusted to match "-6db".

      Thanks for any help!

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

      17

      Online

      2.3k

      Users

      13.6k

      Topics

      118.5k

      Posts