[][src]Struct dasp_signal::Phase

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

An iterator that yields a phase, useful for waveforms like Sine or Saw.

Implementations

impl<S> Phase<S> where
    S: Step
[src]

pub fn next_phase_wrapped_to(&mut self, rem: f64) -> f64[src]

Before yielding the current phase, the internal phase is stepped forward and wrapped via the given value.

pub fn next_phase(&mut self) -> f64[src]

Calls next_phase_wrapped_to, with a wrapping value of 1.0.

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

A composable version of the signal::sine function.

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

A composable version of the signal::saw function.

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

A composable version of the signal::square function.

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

A composable version of the signal::noise_simplex function.

Trait Implementations

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

impl<S> Signal for Phase<S> where
    S: Step
[src]

type Frame = f64

The Frame type returned by the Signal.

Auto Trait Implementations

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

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

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

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

impl<S> UnwindSafe for Phase<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.