From 870cc3f8584630344e0dbcfd48f41e9d5e7536dc Mon Sep 17 00:00:00 2001 From: Weird Constructor Date: Sun, 4 Jul 2021 12:16:01 +0200 Subject: [PATCH] fixed warnings and adjust ed documentation of SMap --- src/dsp/node_map.rs | 2 +- src/dsp/node_smap.rs | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/dsp/node_map.rs b/src/dsp/node_map.rs index 0d116d1..6e8cc1c 100644 --- a/src/dsp/node_map.rs +++ b/src/dsp/node_map.rs @@ -94,7 +94,7 @@ impl DspNode for Map { atoms: &[SAtom], _params: &[ProcBuf], inputs: &[ProcBuf], outputs: &mut [ProcBuf], ctx_vals: LedPhaseVals) { - use crate::dsp::{out, inp, denorm, denorm_v, inp_dir, at}; + use crate::dsp::{out, inp, at}; let inp = inp::Map::inp(inputs); let atv = inp::Map::atv(inputs); diff --git a/src/dsp/node_smap.rs b/src/dsp/node_smap.rs index 554d017..fb46e2d 100644 --- a/src/dsp/node_smap.rs +++ b/src/dsp/node_smap.rs @@ -51,12 +51,10 @@ impl SMap { may be outside the output signal range."; pub const mode : &'static str = "SMap mode\nThis mode defines what kind of input signal is expected \ - and how it will be mapped to the output 'min'/'max' range.\n\ + and how it will be mapped to the output 'min'/'max' range. \ These modes are available:\ - \n * Unipolar (0..1)\ - \n * Bipolar (-1..1)\ - \n * UniInv (1..0)\ - \n * BiInv (1..-1)"; + \nUnipolar (0..1) / Bipolar (-1..1)\ + \nUniInv (1..0) / BiInv (1..-1)"; pub const sig : &'static str = "SMap sig\nMapped signal output\nRange: (-1..1)\n"; pub const DESC : &'static str = @@ -103,7 +101,7 @@ impl DspNode for SMap { atoms: &[SAtom], _params: &[ProcBuf], inputs: &[ProcBuf], outputs: &mut [ProcBuf], ctx_vals: LedPhaseVals) { - use crate::dsp::{out, inp, denorm, denorm_v, inp_dir, at}; + use crate::dsp::{out, inp, at}; let inp = inp::SMap::inp(inputs); let min = inp::SMap::min(inputs);