maad.sound.sharpness

maad.sound.sharpness(Sxx)[source]

Compute the sharpness of a spectrogram

Parameters:
Sxx2d ndarray of scalars

Spectrogram (or image)

Returns:
sharpnessscalar

sharpness of the spectrogram (or image)

Examples

>>> s, fs = maad.sound.load('../data/rock_savanna.wav')
>>> Sxx_power,_,_,_ = maad.sound.spectrogram (s, fs)  
>>> sharp = maad.sound.sharpness(Sxx_power)
>>> sharp
1.1930709869950632e-05