Skip to main content

Core Frequency Domain Features

Get Spectral Centroid

Calculate the spectral centroid given the first half of the magnitude spectrum of an audio signal. Do not pass the whole (i.e. mirrored) magnitude spectrum into this function or you will always get the middle index as the spectral centroid.

Get Spectral Flatness

Calculate the spectral flatness given the first half of the magnitude spectrum of an audio signal.

Get Spectral Crest

Calculate the spectral crest given the first half of the magnitude spectrum of an audio signal.

Get Spectral Rolloff

Calculate the spectral rolloff given the first half of the magnitude spectrum of an audio signal.

Get Spectral Kurtosis

Calculate the spectral kurtosis given the first half of the magnitude spectrum of an audio signal.