Trait sampara::signal::Delta[][src]

pub trait Delta<const N: usize>: Sized {
    type Delta: Frame<N, Sample = f64>;
    fn delta(&mut self) -> Option<Self::Delta>;

    fn phase(self) -> Phase<Self, N> { ... }
}

Types that can produce a phase step size, usually based on a target frequency divided by a sampling frequency (sample rate).

These types are mainly used for driving oscillators and other periodic Signals, which advance one step at a time for each output.

Associated Types

type Delta: Frame<N, Sample = f64>[src]

Loading content...

Required methods

fn delta(&mut self) -> Option<Self::Delta>[src]

Loading content...

Provided methods

fn phase(self) -> Phase<Self, N>[src]

Loading content...

Implementors

impl<F, const N: usize> Delta<N> for Fixed<F, N> where
    F: Frame<N, Sample = f64>, 
[src]

type Delta = F

impl<S, const N: usize> Delta<N> for Variable<S, N> where
    S: Signal<N>,
    S::Frame: Frame<N, Sample = f64>, 
[src]

type Delta = S::Frame

Loading content...