diff --git a/crates/basic_gain/Cargo.toml b/crates/basic_gain/Cargo.toml index 6034eb7..c6eed48 100644 --- a/crates/basic_gain/Cargo.toml +++ b/crates/basic_gain/Cargo.toml @@ -9,5 +9,4 @@ crate-type = ["cdylib"] [dependencies] baseplug = { git = "https://github.com/wrl/baseplug.git", rev = "9cec68f31cca9c0c7a1448379f75d92bbbc782a8" } serde = "1.0.126" - -# utils = { path = "../utils" } +utils = { path = "../utils" } diff --git a/crates/basic_gain/src/lib.rs b/crates/basic_gain/src/lib.rs index 08d585d..ce6b4b4 100644 --- a/crates/basic_gain/src/lib.rs +++ b/crates/basic_gain/src/lib.rs @@ -7,21 +7,15 @@ use serde::{Deserialize, Serialize}; baseplug::model! { #[derive(Debug, Serialize, Deserialize)] struct GainModel { - #[model(min = -90.0, max = 3.0)] - #[parameter(name = "gain", unit = "Decibels", - gradient = "Power(0.15)")] - gain: f32 + #[model(min = 0.0, max = 1.0)] + #[parameter(name = "gain")] + gain: f32, } } impl Default for GainModel { fn default() -> Self { - Self { - // "gain" is converted from dB to coefficient in the parameter handling code, - // so in the model here it's a coeff. - // -0dB == 1.0 - gain: 1.0, - } + Self { gain: 1.0 } } }