pub struct HeldPerformanceNote {
pub pitch: Pitch,
pub velocity: u8,
pub channel: Channel,
pub started_at: Tick,
pub released_while_sustained: bool,
pub key_down: bool,
pub sostenuto_captured: bool,
}Expand description
A note currently held down at a source.
Records the active note’s pitch, velocity, channel, start tick, and whether it was released while the sustain pedal was down.
Fields§
§pitch: PitchPitch of the held note.
velocity: u8Attack velocity.
channel: ChannelChannel the note plays on.
started_at: TickTick at which the note started.
released_while_sustained: boolWhether note-off arrived while sustain was held.
key_down: boolWhether the physical/logical key is still down.
sostenuto_captured: boolWhether sostenuto captured this sounding note when the pedal descended.
Trait Implementations§
Source§impl Clone for HeldPerformanceNote
impl Clone for HeldPerformanceNote
Source§fn clone(&self) -> HeldPerformanceNote
fn clone(&self) -> HeldPerformanceNote
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 HeldPerformanceNote
impl Debug for HeldPerformanceNote
impl Eq for HeldPerformanceNote
Source§impl PartialEq for HeldPerformanceNote
impl PartialEq for HeldPerformanceNote
impl StructuralPartialEq for HeldPerformanceNote
Auto Trait Implementations§
impl Freeze for HeldPerformanceNote
impl RefUnwindSafe for HeldPerformanceNote
impl Send for HeldPerformanceNote
impl Sync for HeldPerformanceNote
impl Unpin for HeldPerformanceNote
impl UnsafeUnpin for HeldPerformanceNote
impl UnwindSafe for HeldPerformanceNote
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