mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Store defaults on Param objects
And add methods for querying them.
This commit is contained in:
@@ -58,6 +58,7 @@ impl Default for GainParams {
|
||||
// ...either manually specify all fields:
|
||||
gain: FloatParam {
|
||||
value: 0.0,
|
||||
default: 0.0,
|
||||
smoothed: Smoother::new(SmoothingStyle::Linear(50.0)),
|
||||
value_changed: None,
|
||||
range: FloatRange::Linear {
|
||||
|
||||
Reference in New Issue
Block a user