1
0
Fork 0

Make gain smoothing slower in examples

This commit is contained in:
Robbert van der Helm 2022-02-02 21:34:17 +01:00
parent 1336139a65
commit f8eb0e4ea6
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ impl Default for GainParams {
Self { Self {
gain: FloatParam { gain: FloatParam {
value: 0.0, value: 0.0,
smoothed: Smoother::new(SmoothingStyle::SmoothLinear(2.0)), smoothed: Smoother::new(SmoothingStyle::SmoothLinear(3.0)),
value_changed: None, value_changed: None,
// If, for instance, updating this parameter would require other parts of the // If, for instance, updating this parameter would require other parts of the
// plugin's internal state to be updated other values to also be updated, then you // plugin's internal state to be updated other values to also be updated, then you

View file

@ -60,7 +60,7 @@ impl Default for SineParams {
Self { Self {
gain: FloatParam { gain: FloatParam {
value: -10.0, value: -10.0,
smoothed: Smoother::new(SmoothingStyle::SmoothLinear(2.0)), smoothed: Smoother::new(SmoothingStyle::SmoothLinear(3.0)),
range: Range::Linear { range: Range::Linear {
min: -30.0, min: -30.0,
max: 0.0, max: 0.0,