1
0
Fork 0

Change the scaling on Safety Limiter's threshold

With the addition of negative values the linear scale doesn't work
anymore.
This commit is contained in:
Robbert van der Helm 2022-07-22 22:49:59 +02:00
parent f5459e95a5
commit 6e89d3737b

View file

@ -107,9 +107,10 @@ impl Default for SafetyLimiterParams {
threshold_gain: FloatParam::new(
"Threshold",
util::db_to_gain(0.00),
FloatRange::Linear {
FloatRange::Skewed {
min: util::db_to_gain(-24.0),
max: util::db_to_gain(12.0),
factor: FloatRange::skew_factor(-1.0),
},
)
.with_unit(" dB")