<?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[Meters linearity...]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.hise.audio/uid/1">@Christoph-Hart</a> I always found the behaviour of the meters weird. They are linear... Is that intentional?<br />
I had a glance at the source, and while the meter class <code>setPeak</code> function has a <code>forcelinear</code> option, it is apparently not used in the processor headers.<br />
Rather, they seem to be directly constructed using the <code>drawStereoMeter</code> method, and this one linearises the values like so:</p>
<pre><code>void VuMeter::drawStereoMeter(Graphics &amp;g)
{
	const float vL = jmin(1.0f, (l + 100.0f) / 100.0f);
	const float vR = jmin(1.0f, (r + 100.0f) / 100.0f);

	getLaf()-&gt;drawStereoMeter2(g, *this, type, vL, vR);
}
</code></pre>
<p dir="auto">shouldn't it be instead:</p>
<pre><code>void VuMeter::drawStereoMeter(Graphics &amp;g)
{
	const float vL = jmin(1.0f, Decibels::decibelsToGain(l));
	const float vR = jmin(1.0f, Decibels::decibelsToGain(r));

	getLaf()-&gt;drawStereoMeter2(g, *this, type, vL, vR);
}
</code></pre>
]]></description><link>https://forum.hise.audio/topic/4935/meters-linearity</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 09:39:50 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/4935.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Nov 2021 17:51:27 GMT</pubDate><ttl>60</ttl></channel></rss>