pub struct PerformanceInput {
pub input_time: Tick,
pub intent: PerformanceIntent,
}Expand description
A raw performance gesture submitted to a source at a given input time.
Pairs a PerformanceIntent with the Tick at which it was played, before
any source-side transformation (transpose, scale lock) is applied.
Fields§
§input_time: TickTick at which the gesture was played.
intent: PerformanceIntentThe gesture to perform.
Implementations§
Source§impl PerformanceInput
impl PerformanceInput
Sourcepub fn new(input_time: Tick, intent: PerformanceIntent) -> Self
pub fn new(input_time: Tick, intent: PerformanceIntent) -> Self
Creates an input pairing input_time with intent.
Sourcepub fn note_on(
input_time: Tick,
channel: Channel,
midi: u8,
velocity: u8,
) -> Self
pub fn note_on( input_time: Tick, channel: Channel, midi: u8, velocity: u8, ) -> Self
Builds a note-on input from a raw MIDI note number and velocity.
Trait Implementations§
Source§impl Clone for PerformanceInput
impl Clone for PerformanceInput
Source§fn clone(&self) -> PerformanceInput
fn clone(&self) -> PerformanceInput
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 moreSource§impl Debug for PerformanceInput
impl Debug for PerformanceInput
impl Eq for PerformanceInput
Source§impl PartialEq for PerformanceInput
impl PartialEq for PerformanceInput
impl StructuralPartialEq for PerformanceInput
Auto Trait Implementations§
impl Freeze for PerformanceInput
impl RefUnwindSafe for PerformanceInput
impl Send for PerformanceInput
impl Sync for PerformanceInput
impl Unpin for PerformanceInput
impl UnsafeUnpin for PerformanceInput
impl UnwindSafe for PerformanceInput
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