[][src]Trait spectrusty_core::audio::MulNorm

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

This trait is being used for scaling sample amplitudes.

Required methods

fn saturating_add(self, other: Self) -> Self

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]

fn mul_norm(self, other: Self) -> Self

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

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

Loading content...

Implementations on Foreign Types

impl MulNorm for f32[src]

impl MulNorm for i16[src]

impl MulNorm for i32[src]

Loading content...

Implementors

Loading content...