mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 10:46:55 +00:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user