Struct midi_m8_core::midi_file::MidiFileTrack
source · 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: u32Length 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