pub enum BlockEvent<'a> {
Midi {
offset: u32,
bytes: [u8; 3],
len: u8,
},
MidiLong {
offset: u32,
bytes: &'a [u8],
},
ParamSet {
offset: u32,
param: u32,
value: f64,
},
NoteOn {
offset: u32,
channel: u8,
key: u8,
velocity: f32,
},
NoteOff {
offset: u32,
channel: u8,
key: u8,
velocity: f32,
},
}Expand description
An event delivered to or emitted by a processor within a block, timestamped
by a sample offset into the block.
Variants§
Midi
A short MIDI message of up to three bytes.
Fields
MidiLong
A long MIDI message (for example sysex) borrowing its bytes.
ParamSet
A parameter-set event.
Fields
NoteOn
A note-on event.
Fields
NoteOff
A note-off event.
Trait Implementations§
Source§impl<'a> Clone for BlockEvent<'a>
impl<'a> Clone for BlockEvent<'a>
Source§fn clone(&self) -> BlockEvent<'a>
fn clone(&self) -> BlockEvent<'a>
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<'a> Copy for BlockEvent<'a>
Source§impl<'a> Debug for BlockEvent<'a>
impl<'a> Debug for BlockEvent<'a>
Source§impl<'a> PartialEq for BlockEvent<'a>
impl<'a> PartialEq for BlockEvent<'a>
Source§fn eq(&self, other: &BlockEvent<'a>) -> bool
fn eq(&self, other: &BlockEvent<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for BlockEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for BlockEvent<'a>
impl<'a> RefUnwindSafe for BlockEvent<'a>
impl<'a> Send for BlockEvent<'a>
impl<'a> Sync for BlockEvent<'a>
impl<'a> Unpin for BlockEvent<'a>
impl<'a> UnsafeUnpin for BlockEvent<'a>
impl<'a> UnwindSafe for BlockEvent<'a>
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