Trait rsynth::envelope::Envelope[][src]

pub trait Envelope<'a, T> {
    type Iter: Iterator<Item = EnvelopeIteratorItem<T>>;
    type EventType;
    fn iter(&'a self) -> Self::Iter;
fn insert_event(&mut self, event: Self::EventType);
fn forget_past(&mut self, number_of_frames_to_forget: u32); }
👎 Deprecated since 0.1.1:

This was never really worked out and should best be improved in a separate crate.

Defines the behaviour of an envelope. An envelope allows to get an iterator. The returned iterator allows to iterator over the frames, starting from the current position, and for each frame, returns the envelope value at that frame.

Associated Types

type Iter: Iterator<Item = EnvelopeIteratorItem<T>>[src]

👎 Deprecated since 0.1.1:

This was never really worked out and should best be improved in a separate crate.

The type of the iterator.

type EventType[src]

👎 Deprecated since 0.1.1:

This was never really worked out and should best be improved in a separate crate.

Loading content...

Required methods

fn iter(&'a self) -> Self::Iter[src]

👎 Deprecated since 0.1.1:

This was never really worked out and should best be improved in a separate crate.

Get the iterator.

fn insert_event(&mut self, event: Self::EventType)[src]

👎 Deprecated since 0.1.1:

This was never really worked out and should best be improved in a separate crate.

fn forget_past(&mut self, number_of_frames_to_forget: u32)[src]

👎 Deprecated since 0.1.1:

This was never really worked out and should best be improved in a separate crate.

Loading content...

Implementors

impl<'a, T> Envelope<'a, T> for StairCaseEnvelope<T> where
    T: Copy + 'a, 
[src]

type Iter = StairCaseEnvelopeIterator<'a, T>

👎 Deprecated since 0.1.1:

This was never really worked out and should best be improved in a separate crate.

type EventType = Timed<T>

👎 Deprecated since 0.1.1:

This was never really worked out and should best be improved in a separate crate.

Loading content...