<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Auto-Gain?]]></title><description><![CDATA[<p dir="auto">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.</p>
<p dir="auto">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.</p>
<p dir="auto">Can anyone point me in the right direction please?</p>
<p dir="auto">Here's the flow:</p>
<ol>
<li>Click "auto-gain"</li>
<li>Play a few seconds of audio</li>
<li>Buffer collects peak values</li>
<li>Math/ average peak values</li>
<li>return average peak value.</li>
<li>Adjust volume to pre-defined output.</li>
</ol>
<p dir="auto">ie.  User sets desired output to be "-6db" , plays the track, output adjusted to match "-6db".</p>
<p dir="auto">Thanks for any help!</p>
]]></description><link>https://forum.hise.audio/topic/14671/auto-gain</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 06:09:30 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/14671.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Apr 2026 01:30:17 GMT</pubDate><ttl>60</ttl></channel></rss>