pub struct HxTimedEvent {
timing: usize,
kind: HxMidiEvent,
}
Fields
timing: usize
The frame number in the current block by the audio driver or plugin API/DAW
kind: HxMidiEvent
Implementations
sourceimpl HxTimedEvent
impl HxTimedEvent
pub fn new_timed(timing: usize, kind: HxMidiEvent) -> Self
pub fn is_cc(&self) -> bool
pub fn kind(&self) -> HxMidiEvent
pub fn cc(timing: usize, channel: u8, cc: u8, value: f32) -> Self
pub fn note_on(timing: usize, channel: u8, note: u8, vel: f32) -> Self
pub fn note_off(timing: usize, channel: u8, note: u8) -> Self
Trait Implementations
sourceimpl Clone for HxTimedEvent
impl Clone for HxTimedEvent
sourcefn clone(&self) -> HxTimedEvent
fn clone(&self) -> HxTimedEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HxTimedEvent
impl Debug for HxTimedEvent
impl Copy for HxTimedEvent
Auto Trait Implementations
impl RefUnwindSafe for HxTimedEvent
impl Send for HxTimedEvent
impl Sync for HxTimedEvent
impl Unpin for HxTimedEvent
impl UnwindSafe for HxTimedEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more