From 6b26828839b363c8a4b82ef53ddd77a795bb52a5 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 24 Jul 2022 19:01:28 +0200 Subject: [PATCH] Default both offsets to 0 dB again Otherwise the UI just looks weird. --- plugins/spectral_compressor/src/compressor_bank.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/spectral_compressor/src/compressor_bank.rs b/plugins/spectral_compressor/src/compressor_bank.rs index b5e38993..c4cbeabb 100644 --- a/plugins/spectral_compressor/src/compressor_bank.rs +++ b/plugins/spectral_compressor/src/compressor_bank.rs @@ -273,13 +273,7 @@ impl CompressorParams { // As explained above, these offsets are relative to the target curve threshold_offset_db: FloatParam::new( format!("{name_prefix} Offset"), - // TODO: Bit of a hacky way to set the default values differently for upwards and - // downwards compressors - if param_id_prefix == UPWARDS_NAME_PREFIX { - -20.0 - } else { - 0.0 - }, + 0.0, FloatRange::Linear { min: -50.0, max: 50.0, @@ -303,6 +297,8 @@ impl CompressorParams { .with_string_to_value(formatters::s2v_compression_ratio()), high_freq_ratio_rolloff: FloatParam::new( format!("{name_prefix} Hi-Freq Rolloff"), + // TODO: Bit of a hacky way to set the default values differently for upwards and + // downwards compressors if param_id_prefix == UPWARDS_NAME_PREFIX { 0.75 } else {