For each element in subj_array, grab the closest corresponding [:loudness_cluster] from ref_array, both arrays must be sorted (by time in this case) beforehand.