Struct oddio::Sine[][src]

pub struct Sine { /* fields omitted */ }

A trivial Signal that produces a sine wave of a particular frequency, forever

Implementations

impl Sine[src]

pub fn new(phase: f32, frequency_hz: f32) -> Self[src]

Construct a sine wave that begins at phase radians and cycles frequency_hz times per second

phase doesn't impact the sound of a single sine wave, but multiple concurrent sound waves may produce weird interference effects if their phases align.

Trait Implementations

impl Signal for Sine[src]

type Frame = Sample

Type of frames yielded by sample, e.g. [Sample; 2] for stereo

Auto Trait Implementations

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.