def associate(vectors, centroids):
    dists = square_distances(vectors, centroids)
    assoc = np.argmin(dists, axis=1)
    return assoc
Splits a music file into onset frames.
dataset/ETHPy150Open omangin/multimodal/multimodal/lib/vector_quantization.py/associate--crossover with--dataset/ETHPy150Open Agerrr/Automated_Music_Transcription/onset_frames_split.py/OnsetFrameSplitter.onset_frames_split