Struct synth::envelope::Envelope [] [src]

pub struct Envelope {
    pub points: Vec<Point>,
}

An alias for the envelope to be used used for amp and freq interpolation.

Fields

Trait Implementations

impl Clone for Envelope
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Envelope
[src]

Formats the value using the given formatter.

impl PartialEq for Envelope
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl FromIterator<Point> for Envelope
[src]

Creates a value from an iterator. Read more

impl From<Vec<Point>> for Envelope
[src]

Performs the conversion.

impl<'a> Trait<'a> for Envelope
[src]

The Point type which may be referenced and interpolated by the Envelope.

An iterator yielding references to Self::Points.

An iterator yielding the Points of the Envelope.

The index of the Point that comes directly before the given x.

The index of the Point that either lands on or comes directly before the given x.

The index of the Point that comes directly after the given x.

The index of the Point that comes directly after the given x.

A reference to the first point that comes before the given x.

A reference to the first point that is equal to or comes before the given x.

A reference to the first point that comes before the given x along with its index.

A reference to the first point that is equal to or comes before the given x along with its index. Read more

A reference to the first point that comes after the given x.

A reference to the first point that is equal to or comes after the given x.

A reference to the first point that comes after the given x along with its index.

A reference to the first point that is equal to or comes after the given x along with its index. Read more

A reference to the first point lying directly on the given x if there is one.

A reference to the first point (along with it's index) lying directly on the given x if there is one. Read more

The points that lie on either side of the given x. Read more

A reference point that is closest to the given x if there is one. Read more

Return y for the given x. Read more

Sample the Envelope's y value for every given positive x step starting from the first point's X value. Read more