pub struct Envelope<'a, P: KnowsProject, T: ProbablyMutable> { /* private fields */ }
Expand description

Can be either TrackEnvelope, or TakeEnvelope

Main points of struct construction are:

Implementations

Full Envelope state, as it written in project file.

Get the last point before the given time.

Get the effective envelope value at a given time position.

samples_requested is how long the caller expects until the next call to evaluate (often, the buffer block size).

See Envelope::scaling_mode.

Get value, as it written in GUI

Get info value by string key. Should not be used in 99% cases.

Is public only for the case of pointers information retrieval, if suddenly needed.

unimplemented categories:
  • P_TRACK : MediaTrack * : parent track pointer (if any)
  • P_DESTTRACK : MediaTrack * : destination track pointer, if on a send
  • P_ITEM : MediaItem * : parent item pointer (if any)
  • P_TAKE : MediaItem_Take * : parent take pointer (if any)

Is envelope relative to track send\receive\hw_out

None if not.

current envelope automation state

Y offset of envelope relative to parent track

(may be separate lane or overlap with track contents)

Y offset of envelope relative to parent track, exclusive of padding

visible height of envelope

visible height of envelope, exclusive of padding

Insert new automation item.

if pool_id > 0 automation item will be a new instance of that pool (which will be created as an empty instance if it does not exist

Otherwise, All underlying points will be collected.

Probably, if position == None — it can lead to moving point to the beginning

Full Envelope state, as it written in project file.

Trait Implementations

Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Get underlying ReaperPointer.
Get underlying ReaperPointer with validity check.
Turn validity checks off.
Turn validity checks on.
State of validity checks.
Return ReaperError::NullPtr if check failed. Read more
Return ReaperError::NullPtr if check failed. Read more
Perform function with only one validity check. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.