1
0
Fork 0

Lower Spectral Compressor envelope init value

This commit is contained in:
Robbert van der Helm 2022-08-20 19:40:51 +02:00
parent 5b021da373
commit b3f918dee5

View file

@ -25,10 +25,10 @@ use crate::SpectralCompressorParams;
const DOWNWARDS_NAME_PREFIX: &str = "downwards_"; const DOWNWARDS_NAME_PREFIX: &str = "downwards_";
const UPWARDS_NAME_PREFIX: &str = "upwards_"; const UPWARDS_NAME_PREFIX: &str = "upwards_";
/// The envelopes are initialized to the RMS value of a unity sine wave to make sure extreme upwards /// The envelopes are initialized to the RMS value of a -12 dB sine wave to make sure extreme upwards
/// compression doesn't cause pops when switching between window sizes and when deactivating and /// compression doesn't cause pops when switching between window sizes and when deactivating and
/// reactivating the plugin. /// reactivating the plugin.
const ENVELOPE_INIT_VALUE: f32 = std::f32::consts::FRAC_1_SQRT_2; const ENVELOPE_INIT_VALUE: f32 = std::f32::consts::FRAC_1_SQRT_2 / 4.0;
/// A bank of compressors so each FFT bin can be compressed individually. The vectors in this struct /// A bank of compressors so each FFT bin can be compressed individually. The vectors in this struct
/// will have a capacity of `MAX_WINDOW_SIZE / 2 + 1` and a size that matches the current complex /// will have a capacity of `MAX_WINDOW_SIZE / 2 + 1` and a size that matches the current complex