musicaiz.features.get_segment_boundaries

musicaiz.features.get_segment_boundaries(ssm: numpy.ndarray, threshold: float = 0.5, window: float = 2) numpy.ndarray[source]

Gets the segment boundaries of a SSM.

Parameters
ssm: np.ndarray [shape=(n_bars, n_bars)]

The SSM.

threshold: float

The threshold for peak picking in the novelty curve if segments=True. Default is 0.5.

window: float

The window for peak picking in the novelty curve if segments=True. Default is 2.

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

The novelty function as a 1D array.