pub struct PatternEvent {
pub tick: i64,
pub status: u8,
pub data1: u8,
pub data2: u8,
}Expand description
One MIDI event a pattern produced, stamped with the absolute song tick it happens at.
A tick rather than a sample offset because this module has no sample rate:
PlaybackWindow::sample_offset is where a tick becomes a position in a
buffer, and the bounce never asks that question at all.
Fields§
§tick: i64§status: u8§data1: u8§data2: u8Implementations§
Trait Implementations§
Source§impl Clone for PatternEvent
impl Clone for PatternEvent
Source§fn clone(&self) -> PatternEvent
fn clone(&self) -> PatternEvent
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 PatternEvent
Source§impl Debug for PatternEvent
impl Debug for PatternEvent
impl Eq for PatternEvent
Source§impl PartialEq for PatternEvent
impl PartialEq for PatternEvent
impl StructuralPartialEq for PatternEvent
Auto Trait Implementations§
impl Freeze for PatternEvent
impl RefUnwindSafe for PatternEvent
impl Send for PatternEvent
impl Sync for PatternEvent
impl Unpin for PatternEvent
impl UnsafeUnpin for PatternEvent
impl UnwindSafe for PatternEvent
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