mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Directly pass a style to .with_smoother()
This commit is contained in:
@@ -66,7 +66,7 @@ impl Default for SineParams {
|
||||
max: 0.0,
|
||||
},
|
||||
)
|
||||
.with_smoother(Smoother::new(SmoothingStyle::Linear(3.0)))
|
||||
.with_smoother(SmoothingStyle::Linear(3.0))
|
||||
.with_unit(" dB")
|
||||
.with_value_to_string(formatters::f32_rounded(2)),
|
||||
frequency: FloatParam::new(
|
||||
@@ -78,7 +78,7 @@ impl Default for SineParams {
|
||||
factor: Range::skew_factor(-2.0),
|
||||
},
|
||||
)
|
||||
.with_smoother(Smoother::new(SmoothingStyle::Linear(10.0)))
|
||||
.with_smoother(SmoothingStyle::Linear(10.0))
|
||||
.with_unit(" Hz")
|
||||
.with_value_to_string(formatters::f32_rounded(0)),
|
||||
use_midi: BoolParam::new("Use MIDI", false),
|
||||
|
||||
Reference in New Issue
Block a user