Fast Fourier transform
The conceptHow a music player's bouncing bars tell bass from treble
Those bars show how loud each pitch is at that moment. To draw them, software must turn a stretch of sound samples into a list of frequencies. That conversion is called the discrete Fourier transform, or DFT.
Done directly, the DFT checks each of N frequencies by multiplying all N samples by a wave at that frequency and adding up the results. That is N × N multiplications: about a million for 1,024 samples.
The fast Fourier transform (FFT) gives exactly the same answer with about N × log₂N steps, roughly 10,000 for 1,024 samples. That is why the bars can keep up with the music.