Rename a few node descriptions and remove a debug print

This commit is contained in:
Weird Constructor 2021-08-16 20:23:40 +02:00
parent 7b17b4766c
commit be9640ac9c
3 changed files with 5 additions and 7 deletions

View file

@ -513,8 +513,6 @@ macro_rules! r_lfot { ($x: expr, $coarse: expr) => {
n_lfot!((denv / 500.0).round() * 500.0)
};
println!("ROUND C {} => {}", d_lfot!($x), d_lfot!(o));
o
}
} }
@ -1889,7 +1887,7 @@ mod tests {
for i in 1..999 {
let x = (((i as f32) / 1000.0) - 0.5) * 2.0;
let r = d_pit!(x);
println!("x={:8.5} => {:8.5}", x, r);
//d// println!("x={:8.5} => {:8.5}", x, r);
assert_eq!(
(n_pit!(r) * 10000.0).round() as i32,
(x * 10000.0).round() as i32);

View file

@ -50,7 +50,7 @@ impl Map {
pub const sig : &'static str =
"Map sig\nMapped signal output\nRange: (-1..1)\n";
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.
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.
"#;
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
range. It's main use is for precise control of an input of another node.

View file

@ -58,14 +58,14 @@ impl SMap {
pub const sig : &'static str =
"SMap sig\nMapped signal output\nRange: (-1..1)\n";
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.
See also the 'Map' node for a more sophisticated version of this.
"#;
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)
to a defined 'min'/'max' signal range.