pub struct AutomationRegistry { /* private fields */ }Expand description
Automation registry - stores all active automations
Implementations§
Source§impl AutomationRegistry
impl AutomationRegistry
pub fn new() -> Self
Sourcepub fn register(&mut self, envelope: AutomationEnvelope)
pub fn register(&mut self, envelope: AutomationEnvelope)
Register an automation envelope
Sourcepub fn get_value(
&self,
target: &str,
param_name: &str,
time_seconds: f32,
) -> Option<f32>
pub fn get_value( &self, target: &str, param_name: &str, time_seconds: f32, ) -> Option<f32>
Get automated value for a target and parameter at a specific time
Sourcepub fn has_automation(&self, target: &str) -> bool
pub fn has_automation(&self, target: &str) -> bool
Check if a target has any active automations
Trait Implementations§
Source§impl Clone for AutomationRegistry
impl Clone for AutomationRegistry
Source§fn clone(&self) -> AutomationRegistry
fn clone(&self) -> AutomationRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutomationRegistry
impl Debug for AutomationRegistry
Source§impl Default for AutomationRegistry
impl Default for AutomationRegistry
Source§fn default() -> AutomationRegistry
fn default() -> AutomationRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AutomationRegistry
impl RefUnwindSafe for AutomationRegistry
impl Send for AutomationRegistry
impl Sync for AutomationRegistry
impl Unpin for AutomationRegistry
impl UnwindSafe for AutomationRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more