[][src]Struct dasp_signal::Hz

pub struct Hz<S> { /* fields omitted */ }

An iterator that yields the step size for a phase.

Implementations

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

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

Construct a Phase iterator that, for every hz yielded by self, yields a phase that is stepped by hz / self.rate.hz.

pub fn sine(self) -> Sine<Self>[src]

A composable alternative to the signal::sine function.

pub fn saw(self) -> Saw<Self>[src]

A composable alternative to the signal::saw function.

pub fn square(self) -> Square<Self>[src]

A composable alternative to the signal::square function.

pub fn noise_simplex(self) -> NoiseSimplex<Self>[src]

A composable alternative to the signal::noise_simplex function.

Trait Implementations

impl<S: Clone> Clone for Hz<S>[src]

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

type Frame = f64

The Frame type returned by the Signal.

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

Auto Trait Implementations

impl<S> RefUnwindSafe for Hz<S> where
    S: RefUnwindSafe

impl<S> Send for Hz<S> where
    S: Send

impl<S> Sync for Hz<S> where
    S: Sync

impl<S> Unpin for Hz<S> where
    S: Unpin

impl<S> UnwindSafe for Hz<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

impl<T> From<T> for T[src]

impl<S> FromSample<S> for S[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SignalBus for T where
    T: Signal
[src]

impl<T> SignalEnvelope for T where
    T: Signal
[src]

impl<T> SignalRms for T where
    T: Signal
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.