From 913aa4bef9bcd169ed9a919a7198b842c1e17694 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 5 Apr 2023 18:46:47 +0200 Subject: [PATCH] Decrease Soft Vacuum output gain range -40 dB sounds reasonable. No need to go down all the way to -100.0. The original version was in the linear domain. --- plugins/aw_soft_vacuum/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/aw_soft_vacuum/src/lib.rs b/plugins/aw_soft_vacuum/src/lib.rs index 0778a74b..a6a71bbc 100644 --- a/plugins/aw_soft_vacuum/src/lib.rs +++ b/plugins/aw_soft_vacuum/src/lib.rs @@ -121,10 +121,9 @@ impl Default for SoftVacuumParams { "Output Gain", util::db_to_gain(0.0), FloatRange::Skewed { - // This doesn't go down to 0.0 so we can use logarithmic smoothing - min: util::MINUS_INFINITY_GAIN, + min: util::db_to_gain(-40.0), max: util::db_to_gain(0.0), - factor: FloatRange::gain_skew_factor(util::MINUS_INFINITY_DB, 0.0), + factor: FloatRange::gain_skew_factor(-40.0, 0.0), }, ) .with_unit(" dB")