def METHOD_NAME(track, time=0):
    """Yields two-tuples (time, event).
    The track is the generator returned by parse_midi_events,
    the time is accumulated from the given starting time (defaulting to 0).
    """
    for delta, ev in track:
        time += delta
        yield time, ev