Struct rsynth::envelope::Envelope[][src]

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

General use envelope with any number of points.

Fields

Methods

impl Envelope
[src]

Finds the amplitude at a certain value on the x axis. Note that the envelope ends at x = 1 and not the last x value specified.

Finds the amplitude at a certain time.

  • time - the time, in milliseconds, that the envelope should calculate from
  • total_length - the total length, in milliseconds, that the envelope lasts. Note that the envelope ends at the last x value specified. This is to make time scaling / adding additional values after the last point easier.

Trait Implementations

impl Clone for Envelope
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Envelope
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Envelope

impl Sync for Envelope