From d5fde24854a87fc603c54e5f966ee3e2fd9fd884 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 1 Feb 2022 23:38:27 +0100 Subject: [PATCH] Use skewed range for frequency parmater --- plugins/sine/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sine/src/lib.rs b/plugins/sine/src/lib.rs index 6510272f..5d30bd8f 100644 --- a/plugins/sine/src/lib.rs +++ b/plugins/sine/src/lib.rs @@ -73,10 +73,10 @@ impl Default for SineParams { }, frequency: FloatParam { value: 420.0, - // TODO: Add logarithmic ranges - range: Range::Linear { + range: Range::Skewed { min: 1.0, max: 20_000.0, + factor: Range::skew_factor(-2.0), }, name: "Frequency", unit: " Hz",