pub struct ControlEvent {
pub frame: u64,
pub target: ControlTarget,
pub parameter: ControlParameter,
pub value: f64,
pub ramp_frames: u64,
pub curve: ControlCurve,
}Expand description
One source-frame event. Zero ramp frames steps immediately and then holds.
A positive ramp starts at the current value on frame and reaches value
exactly on frame + ramp_frames; an overlapping event retargets from there.
Fields§
§frame: u64§target: ControlTarget§parameter: ControlParameter§value: f64§ramp_frames: u64§curve: ControlCurveImplementations§
Source§impl ControlEvent
impl ControlEvent
pub fn new( frame: u64, target: ControlTarget, parameter: ControlParameter, value: f64, ) -> Self
Trait Implementations§
Source§impl Clone for ControlEvent
impl Clone for ControlEvent
Source§fn clone(&self) -> ControlEvent
fn clone(&self) -> ControlEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ControlEvent
Source§impl Debug for ControlEvent
impl Debug for ControlEvent
Source§impl PartialEq for ControlEvent
impl PartialEq for ControlEvent
impl StructuralPartialEq for ControlEvent
Auto Trait Implementations§
impl Freeze for ControlEvent
impl RefUnwindSafe for ControlEvent
impl Send for ControlEvent
impl Sync for ControlEvent
impl Unpin for ControlEvent
impl UnsafeUnpin for ControlEvent
impl UnwindSafe for ControlEvent
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