pub enum LiveControlEvent {
Midi {
offset: u32,
bytes: [u8; 3],
len: u8,
},
ParamSet {
offset: u32,
param: u32,
value: f64,
},
}Expand description
Owned control event moved from the control thread to the audio callback.
Variants§
Implementations§
Source§impl LiveControlEvent
impl LiveControlEvent
Sourcepub fn midi_short(offset: u32, bytes: &[u8]) -> Result<Self>
pub fn midi_short(offset: u32, bytes: &[u8]) -> Result<Self>
Builds a LiveControlEvent::Midi from one to three MIDI bytes.
Sourcepub fn param_set(offset: u32, param: u32, value: f64) -> Result<Self>
pub fn param_set(offset: u32, param: u32, value: f64) -> Result<Self>
Builds a LiveControlEvent::ParamSet, requiring a finite value.
Sourcepub fn to_block_event(self) -> BlockEvent<'static>
pub fn to_block_event(self) -> BlockEvent<'static>
Converts the event into a graph-core BlockEvent.
Trait Implementations§
Source§impl Clone for LiveControlEvent
impl Clone for LiveControlEvent
Source§fn clone(&self) -> LiveControlEvent
fn clone(&self) -> LiveControlEvent
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 LiveControlEvent
Source§impl Debug for LiveControlEvent
impl Debug for LiveControlEvent
Source§impl PartialEq for LiveControlEvent
impl PartialEq for LiveControlEvent
impl StructuralPartialEq for LiveControlEvent
Auto Trait Implementations§
impl Freeze for LiveControlEvent
impl RefUnwindSafe for LiveControlEvent
impl Send for LiveControlEvent
impl Sync for LiveControlEvent
impl Unpin for LiveControlEvent
impl UnsafeUnpin for LiveControlEvent
impl UnwindSafe for LiveControlEvent
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