musicaiz.features._self_similarity¶
- musicaiz.features._self_similarity(feature_vector: List[List[musicaiz.structure.notes.Note]]) numpy.ndarray [source]¶
Converts a feature vector with the highest notes per subdivision and bar in a Self-Similarity Matrix with the cosine distance.
- Parameters
- feature_vector: List[List[Note]]
A vector with all bars and subdivisions in which each element represents the note with the highest pitch.
- Returns
- s: np.ndarray 2d
The SSM computed from the feature_vector.