py2shpss
Submodules
Package Contents
Classes
- class py2shpss.HPSS(mode: str = 'hm21', iter: int = 30, h_size: int = 1, p_size: int = 1, eval_obj: bool = False, *args, **kwargs)[source]
Bases:
object- __call__(spec: nptyping.NDArray[nptyping.Shape[*,*], nptyping.Floating], *args, **kwargs)[source]
Run the HPSS algorithm on the given spectrogram.
- Parameters:
spec (numpy 2D array) – input spectrogram
- Returns:
Harmonic spectrogram. P (numpy 2D array): Percussive spectrogram. obj (numpy 2D array, or None): Objective function log, if eval_obj is True
- Return type:
H (numpy 2D array)