Struct sample::signal::Hz [] [src]

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

An iterator that yields the step size for a phase.

Methods

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

[src]

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

[src]

A composable alternative to the signal::sine function.

[src]

A composable alternative to the signal::saw function.

[src]

A composable alternative to the signal::square function.

[src]

A composable alternative to the signal::noise_simplex function.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

The Frame type returned by the Signal.

[src]

Yield the next Frame in the Signal. Read more

[src]

Whether or not the signal is exhausted of meaningful frames. Read more

[src]

A signal that maps one set of frames to another. Read more

[src]

A signal that maps one set of frames to another. Read more

[src]

Provides an iterator that yields the sum of the frames yielded by both other and self in lock-step. Read more

[src]

Provides an iterator that yields the product of the frames yielded by both other and self in lock-step. Read more

[src]

Provides an iterator that offsets the amplitude of every channel in each frame of the signal by some sample value and yields the resulting frames. Read more

[src]

Produces an Iterator that scales the amplitude of the sample of each channel in every Frame yielded by self by the given amplitude. Read more

[src]

Produces a new Signal that offsets the amplitude of every Frame in self by the respective amplitudes in each channel of the given amp_frame. Read more

[src]

Produces a new Signal that scales the amplitude of every Frame in self by the respective amplitudes in each channel of the given amp_frame. Read more

[src]

Multiplies the rate at which frames of self are yielded by the given signal. Read more

[src]

Converts the rate at which frames of the Signal are yielded using interpolation. Read more

[src]

Multiplies the rate at which frames of the Signal are yielded by the given value. Read more

[src]

Delays the Signal by the given number of frames. Read more

[src]

Converts a Signal into a type that yields the interleaved Samples. Read more

[src]

Clips the amplitude of each channel in each Frame yielded by self to the given threshold amplitude. Read more

[src]

Create a new Signal that calls the enclosing function on each iteration. Read more

[src]

Forks Self into two signals that produce the same frames. Read more

[src]

Moves the Signal into a Bus from which its output may be divided into multiple other Signals in the form of Outputs. Read more

[src]

Converts the Signal into an Iterator that will yield the given number for Frames before returning None. Read more

[src]

Converts the Signal into an Iterator yielding frames until the signal.is_exhausted() returns true. Read more

[src]

Buffers the signal using the given ring buffer. Read more

[src]

An adaptor that yields the RMS of the signal. Read more

[src]

An adaptor that detects and yields the envelope of the signal. Read more

[src]

Borrows a Signal rather than consuming it. Read more

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

[src]

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