Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. The spectral
centroid is a measure used in digital signal processing to characterise
a spectrum. It indicates where the "center of mass" of the spectrum is.
Perceptually, it has a robust connection with the impression of
"brightness" of a sound. It is calculated as the weighted mean of the
frequencies present in the signal, determined using a Fourier transform,
with their magnitudes as the weights.