def _get_corresponding_offsets(onset_fronts, onset_front_id, onsets, offsets):
corresponding_offsets = []<EOL>for index in _get_front_idxs_from_id(onset_fronts, onset_front_id):<EOL><INDENT>offset_fidx, offset_sidx = _lookup_offset_by_onset_idx(index, onsets, offsets)<EOL>corresponding_offsets.append((offset_fidx, offset_sidx))<EOL><DEDENT>return corresponding_offsets<EOL>
Gets the offsets that occur as close as possible to the onsets in the given onset-front.