sample.beatsdrop.sample module

Module for integrating BeatsDROP in the SAMPLE model

class sample.beatsdrop.sample.SAMPLEBeatsDROP(beatsdrop: ~typing.Optional[~sample.beatsdrop.regression.BeatRegression] = None, beat_decisor: ~typing.Optional[~sample.beatsdrop.decision.BeatDecisor] = None, sinusoidal: ~typing.Optional[~sample.sms.sm.SinusoidalModel] = None, regressor: ~typing.Optional[~sample.hinge.HingeRegression] = None, regressor_k: str = 'k_', regressor_q: str = 'q_', freq_reduce: ~typing.Callable[[~numpy.ndarray], float] = <function mean>, max_n_modes: ~typing.Optional[int] = None, **kwargs)

Bases: SAMPLE

SAMPLE model with BeatsDROP beat decoupling

Parameters:
param_matrix_

4-by-N matrix of modal parameters

Type:

array

property beat_decisor

Beat decision model

property beatsdrop

Beat regression model

property phases_: ndarray

Learned sinusoidal phases. Relevant between pairs of beating partials

predict(x: ndarray, **kwargs) ndarray

Resynthesize audio

Parameters:
Returns:

Array of audio samples

Return type:

array