musicaiz.features.plot_novelty_from_ssm¶
- musicaiz.features.plot_novelty_from_ssm(ssm: numpy.ndarray, segments: bool = False, threshold: float = 0.5, window: float = 2, save: Optional[bool] = False, filename: str = 'ssm', title: Optional[str] = None, dpi: int = 300)[source]¶
Plots the novelty curve from a SSM.
- Parameters
- ssm: np.ndarray [shape=(n_bars, n_bars)]
The SSM.
- segments: bool
Plot the sections boundaries over the SSM by computing the novelty function. Default is False.
- 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.- save: Optional[bool]
True if we want to save the output plot in disk. Defaults to True.
- filename: str
The name of the file of the plot in disk. Defaults to
"ssm"
.- title: Optional[str]
Plot title. Defaults to
None
.- dpi: int
dpi of the plot. Defaults to
300
.