pub enum ControlTarget {
Instrument {
track: usize,
instrument: usize,
},
Note {
track: usize,
note: usize,
},
}Expand description
Persistent track/instrument control, or an individual authored note index. Note indices are positions in the track’s Score notes / FrameScore notes.
Variants§
Instrument
Affects existing/releasing and future matching voices, independently per track.
Note
Overrides that note’s instrument lane. It must start within the authored
gate. A note already stolen/ended at execution reports TargetInactive.
Trait Implementations§
Source§impl Clone for ControlTarget
impl Clone for ControlTarget
Source§fn clone(&self) -> ControlTarget
fn clone(&self) -> ControlTarget
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 ControlTarget
Source§impl Debug for ControlTarget
impl Debug for ControlTarget
impl Eq for ControlTarget
Source§impl Ord for ControlTarget
impl Ord for ControlTarget
Source§fn cmp(&self, other: &ControlTarget) -> Ordering
fn cmp(&self, other: &ControlTarget) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ControlTarget
impl PartialEq for ControlTarget
Source§impl PartialOrd for ControlTarget
impl PartialOrd for ControlTarget
impl StructuralPartialEq for ControlTarget
Auto Trait Implementations§
impl Freeze for ControlTarget
impl RefUnwindSafe for ControlTarget
impl Send for ControlTarget
impl Sync for ControlTarget
impl Unpin for ControlTarget
impl UnsafeUnpin for ControlTarget
impl UnwindSafe for ControlTarget
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