pub struct MidiFileTrack {
pub events: Vec<(u32, MidiMsg)>,
pub name: Option<String>,
pub n_ticks: u32,
}
Fields§
§events: Vec<(u32, MidiMsg)>
A vector of tick/Midi event tuples. Unlike in the Midi file representation, the ticks in the tuple represent absolute time since the start of the track. Events must be in order.
name: Option<String>
Name of the track
n_ticks: u32
Length of the track in ticks
Implementations§
Source§impl MidiFileTrack
impl MidiFileTrack
pub fn extend_midi(&self, v: &mut Vec<u8>)
Sourcepub fn sort_events(&mut self)
pub fn sort_events(&mut self)
Sort events by tick time
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MidiFileTrack
impl RefUnwindSafe for MidiFileTrack
impl Send for MidiFileTrack
impl Sync for MidiFileTrack
impl Unpin for MidiFileTrack
impl UnwindSafe for MidiFileTrack
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