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.