Struct dsp::signal::ConstHz [] [src]

pub struct ConstHz {
    // some fields omitted
}

A constant phase step size.

Methods

impl ConstHz

fn phase(self) -> Phase<ConstHz>

Construct a Phase iterator that is incremented via the constant step size, self.step.

fn sine(self) -> Sine<ConstHz>

A composable alternative to the signal::sine function.

fn saw(self) -> Saw<ConstHz>

A composable alternative to the signal::saw function.

fn square(self) -> Square<ConstHz>

A composable alternative to the signal::square function.

fn noise_simplex(self) -> NoiseSimplex<ConstHz>

A composable alternative to the signal::noise_simplex function.

Trait Implementations

impl Step for ConstHz

fn step(&mut self) -> f64

Yield the phase step size (normally hz / sampling rate). Read more

impl Iterator for ConstHz

type Item = f64

fn next(&mut self) -> Option<ConstHz::Item>

Derived Implementations

impl Clone for ConstHz

fn clone(&self) -> ConstHz

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more