mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Allow negative thresholds for Safety Limiter
This commit is contained in:
@@ -107,10 +107,8 @@ impl Default for SafetyLimiterParams {
|
|||||||
threshold_gain: FloatParam::new(
|
threshold_gain: FloatParam::new(
|
||||||
"Threshold",
|
"Threshold",
|
||||||
util::db_to_gain(0.00),
|
util::db_to_gain(0.00),
|
||||||
// This parameter mostly exists to allow small peaks through, so no need to go below
|
|
||||||
// 0 dBFS
|
|
||||||
FloatRange::Linear {
|
FloatRange::Linear {
|
||||||
min: util::db_to_gain(0.0),
|
min: util::db_to_gain(-24.0),
|
||||||
max: util::db_to_gain(12.0),
|
max: util::db_to_gain(12.0),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user