[][src]Trait dasp_signal::Step

pub trait Step {
    fn step(&mut self) -> f64;
}

Types that may be used to give a phase step size based on some hz / sample rate.

This allows the Phase to be generic over either ConstHz and Hz<I>.

Generally, users need not be concerned with this trait unless writing code that must remain generic over phase stepping types like oscillators.

Required methods

fn step(&mut self) -> f64

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

The Phase calls this and uses the returned value to step forward its internal phase.

Loading content...

Implementors

impl Step for ConstHz[src]

impl<S> Step for Hz<S> where
    S: Signal<Frame = f64>, 
[src]

Loading content...