pub struct RecordBuffer { /* private fields */ }Expand description
Accumulates MIDI events during recording, then commits to a MidiClip.
Implementations§
Source§impl RecordBuffer
impl RecordBuffer
pub fn new() -> Self
Sourcepub fn record(&mut self, tick: i64, status: u8, data1: u8, data2: u8)
pub fn record(&mut self, tick: i64, status: u8, data1: u8, data2: u8)
Record a MIDI event at the given absolute tick.
pub fn is_active(&self) -> bool
pub fn start_tick(&self) -> i64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecordBuffer
impl RefUnwindSafe for RecordBuffer
impl Send for RecordBuffer
impl Sync for RecordBuffer
impl Unpin for RecordBuffer
impl UnsafeUnpin for RecordBuffer
impl UnwindSafe for RecordBuffer
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