Meters linearity...
-
@Christoph-Hart I always found the behaviour of the meters weird. They are linear... Is that intentional?
I had a glance at the source, and while the meter classsetPeakfunction has aforcelinearoption, it is apparently not used in the processor headers.
Rather, they seem to be directly constructed using thedrawStereoMetermethod, and this one linearises the values like so:void VuMeter::drawStereoMeter(Graphics &g) { const float vL = jmin(1.0f, (l + 100.0f) / 100.0f); const float vR = jmin(1.0f, (r + 100.0f) / 100.0f); getLaf()->drawStereoMeter2(g, *this, type, vL, vR); }shouldn't it be instead:
void VuMeter::drawStereoMeter(Graphics &g) { const float vL = jmin(1.0f, Decibels::decibelsToGain(l)); const float vR = jmin(1.0f, Decibels::decibelsToGain(r)); getLaf()->drawStereoMeter2(g, *this, type, vL, vR); }