Rename a few node descriptions and remove a debug print
This commit is contained in:
parent
7b17b4766c
commit
be9640ac9c
3 changed files with 5 additions and 7 deletions
|
@ -513,8 +513,6 @@ macro_rules! r_lfot { ($x: expr, $coarse: expr) => {
|
||||||
n_lfot!((denv / 500.0).round() * 500.0)
|
n_lfot!((denv / 500.0).round() * 500.0)
|
||||||
};
|
};
|
||||||
|
|
||||||
println!("ROUND C {} => {}", d_lfot!($x), d_lfot!(o));
|
|
||||||
|
|
||||||
o
|
o
|
||||||
}
|
}
|
||||||
} }
|
} }
|
||||||
|
@ -1889,7 +1887,7 @@ mod tests {
|
||||||
for i in 1..999 {
|
for i in 1..999 {
|
||||||
let x = (((i as f32) / 1000.0) - 0.5) * 2.0;
|
let x = (((i as f32) / 1000.0) - 0.5) * 2.0;
|
||||||
let r = d_pit!(x);
|
let r = d_pit!(x);
|
||||||
println!("x={:8.5} => {:8.5}", x, r);
|
//d// println!("x={:8.5} => {:8.5}", x, r);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
(n_pit!(r) * 10000.0).round() as i32,
|
(n_pit!(r) * 10000.0).round() as i32,
|
||||||
(x * 10000.0).round() as i32);
|
(x * 10000.0).round() as i32);
|
||||||
|
|
|
@ -50,7 +50,7 @@ impl Map {
|
||||||
pub const sig : &'static str =
|
pub const sig : &'static str =
|
||||||
"Map sig\nMapped signal output\nRange: (-1..1)\n";
|
"Map sig\nMapped signal output\nRange: (-1..1)\n";
|
||||||
pub const DESC : &'static str =
|
pub const DESC : &'static str =
|
||||||
r#"Signal Range Mapper
|
r#"Range Mapper
|
||||||
|
|
||||||
This node allows to map an input signal range to a precise output signal range.
|
This node allows to map an input signal range to a precise output signal range.
|
||||||
It's mostly useful to map control signals to modulate inputs.
|
It's mostly useful to map control signals to modulate inputs.
|
||||||
|
@ -58,7 +58,7 @@ It's mostly useful to map control signals to modulate inputs.
|
||||||
See also the 'SMap' node, which is a simplified version of this node.
|
See also the 'SMap' node, which is a simplified version of this node.
|
||||||
"#;
|
"#;
|
||||||
pub const HELP : &'static str =
|
pub const HELP : &'static str =
|
||||||
r#"Map - Signal Range Mapper
|
r#"Map - Range Mapper
|
||||||
|
|
||||||
This node allows to map an input signal range to a precise output signal
|
This node allows to map an input signal range to a precise output signal
|
||||||
range. It's main use is for precise control of an input of another node.
|
range. It's main use is for precise control of an input of another node.
|
||||||
|
|
|
@ -58,14 +58,14 @@ impl SMap {
|
||||||
pub const sig : &'static str =
|
pub const sig : &'static str =
|
||||||
"SMap sig\nMapped signal output\nRange: (-1..1)\n";
|
"SMap sig\nMapped signal output\nRange: (-1..1)\n";
|
||||||
pub const DESC : &'static str =
|
pub const DESC : &'static str =
|
||||||
r#"Simple Signal Range Mapper
|
r#"Simple Range Mapper
|
||||||
|
|
||||||
This node allows to map an unipolar (0..1) or bipolar signal (-1..1) to a defined 'min'/'max' signal range.
|
This node allows to map an unipolar (0..1) or bipolar signal (-1..1) to a defined 'min'/'max' signal range.
|
||||||
|
|
||||||
See also the 'Map' node for a more sophisticated version of this.
|
See also the 'Map' node for a more sophisticated version of this.
|
||||||
"#;
|
"#;
|
||||||
pub const HELP : &'static str =
|
pub const HELP : &'static str =
|
||||||
r#"SMap - Simple Signal Range Mapper
|
r#"SMap - Simple Range Mapper
|
||||||
|
|
||||||
This node allows to map an unipolar (0..1) or bipolar signal (-1..1)
|
This node allows to map an unipolar (0..1) or bipolar signal (-1..1)
|
||||||
to a defined 'min'/'max' signal range.
|
to a defined 'min'/'max' signal range.
|
||||||
|
|
Loading…
Reference in a new issue