/// Converts a MIDI stream's delta_time into absolute ticks.
Converts a MIDI stream's delta_time into absolute ticks.
Converts a MIDI stream ' s delta_time into absolute ticks .
fn convert_to_absolute_time(
    mut events: Vec<MIDITrackEvent<Vec<u8>>>,
) -> Vec<MIDITrackEvent<Vec<u8>>> {
    let mut current_time = 0;
    for event in &mut events {
        current_time += event.delta_time;
        event.delta_time = current_time;
    }
    events
}
fn convert_to_absolute_time ( mut events : Vec < MIDITrackEvent < Vec < u8 > > > , ) -> Vec < MIDITrackEvent < Vec < u8 > > > { let mut current_time = 0 ; for event in & mut events { current_time += event . delta_time ; event . delta_time = current_time ; } events }
Converts a MIDI stream's delta_time into absolute ticks.
Converts a MIDI stream ' s delta_time into absolute ticks .
events
Vec<MIDITrackEvent<Vec<u8>>>