Trait spectrusty::audio::MulNorm

source ·
pub trait MulNorm {
    fn saturating_add(self, other: Self) -> Self;
    fn mul_norm(self, other: Self) -> Self;
}
Expand description

This trait is being used for scaling sample amplitudes.

Required Methods§

Saturating addition. Computes self + other, saturating at the normalized bounds instead of overflowing.

Float samples operates in range: [-1.0, 1.0], integer: [min, max]

Multiplies self with the other in the normalized sample amplitude range.

Float samples operates in range: [-1.0, 1.0], integer: [min, max]

Implementations on Foreign Types§

Implementors§