pytimbre.spectral.timbral_model.timbral_util.get_percussive_audio¶
- pytimbre.spectral.timbral_model.timbral_util.get_percussive_audio(audio_samples, return_ratio=True)¶
Gets the percussive comonent of the audio file. Currently, the default values for harmonic/percussive decomposition have been used. Future updates may change the defaults for better separation or to improve the correlation to subjective data.
- Parameters:
audio_samples – The audio samples to be harmonicall/percussively separated
return_ratio – Determins the value returned by the function.
- Returns:
If return_ratio is True (default), the ratio of percussive energy is returned. If False, the function returns the percussive audio as a time domain array.