Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Spectral flux is
a measure of how quickly the power spectrum of a signal is changing,
calculated by comparing the power spectrum for one frame against the
power spectrum from the previous frame. More precisely, it is usually
calculated as the 2-norm (also known as the Euclidean distance) between
the two normalised spectra. Calculated this way, the spectral flux is
not dependent upon overall power (since the spectra are normalised), nor
on phase considerations (since only the magnitudes are compared). The
spectral flux can be used to determine the timbre of an audio signal, or
in onset detection, among other things.