Type Definition spectrum_analyzer::SimpleSpectrumScalingFunction [−][src]
type SimpleSpectrumScalingFunction<'a> = &'a dyn Fn(f32) -> f32;
Definition of a simple function that gets applied on each frequency magnitude
in the spectrum. This is easier to write, especially for Rust beginners.
Everything that can be achieved with this, can also be achieved with parameter
total_scaling_fn
.
The scaling only affects the value/amplitude of the frequency but not the frequency itself.