musicaiz.features.self_similarity_measures

musicaiz.features.self_similarity_measures(file: Union[musicaiz.loaders.Musa, str, TextIO, pathlib.Path], measures: List[str]) numpy.ndarray[source]

Computes the SSM with the selected measure for all the bars.

Parameters
file: Union[Musa, str, TextIO, Path]

A file or a musicaiz Musa() object.

measure: str

The list of measures used to compute the SSM. It also accepts all as a value if we want to compute the SSM with all the available measures.

Returns
s: np.ndarray [shape=(n_bars, n_bars)]

The SSM computed from the selected measures.