13
0

L: Fix Livetrax input meters

This commit is contained in:
Robin Gareus 2024-06-12 21:30:59 +02:00
parent 49b459eb46
commit 26c66ac688
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -96,7 +96,7 @@ LiveTraxMeters::resize (size_t sz)
b[2] = 0x991122ff; // red highlight gradient Bot
b[3] = 0x551111ff; // red highlight gradient Top
stp[0] = 115.0 * log_meter0dB (-15);
stp[0] = 115.0 * log_meter0dB (-18);
stp[1] = 115.0 * log_meter0dB (-9);
stp[2] = 115.0 * log_meter0dB (-3);
stp[3] = 115.0;
@ -142,7 +142,8 @@ LiveTraxMeters::update_meters ()
if (n >= _meters.size()) {
break;
}
_meters[n]->set (p.second.meter->level, p.second.meter->peak);
_meters[n]->set (log_meter0dB (accurate_coefficient_to_dB (p.second.meter->level)),
log_meter0dB (accurate_coefficient_to_dB (p.second.meter->peak)));
++n;
}