def dur_attributes_to_dur(d_half, d_semiqvr):
    """
    Convert arrays of d_hlf and d_sqv to d.
    - See eq. (2) of the paper.
    """

    def d_hlf_dur_sqv_to_d(d_hlf, d_sqv):
        return 8 * d_hlf + d_sqv

    d = d_hlf_dur_sqv_to_d(d_half, d_semiqvr)

    return d