Learn

Spectrum Analyzer Basics

Decode the frequency spectrum: what those dancing bars actually mean and how to use them.

What Is a Spectrum Analyzer?

A spectrum analyzer is a tool that decomposes an audio signal into its constituent frequencies and displays their relative amplitudes. While a waveform shows amplitude over time (the time domain), a spectrum analyzer shows amplitude over frequency (the frequency domain). The most familiar visualization is a row of vertical bars, each representing a frequency band, bouncing in real time as music plays. Spectrum analyzers are used in audio engineering for mixing and mastering, in live sound for room equalization, and in music visualization as a core visual element. Understanding how they work provides insight into the fundamental relationship between audio signals and the visual representations used in every music visualizer.

Frequency Bands Explained

The audible frequency range spans roughly 20 Hz to 20,000 Hz. This range is commonly divided into bands. Sub-bass (20-60 Hz) is felt more than heard and is produced by kick drums and bass synths. Bass (60-250 Hz) provides the low-end warmth of bass guitar, lower piano notes, and toms. Low-mids (250-500 Hz) contain the body of many instruments and can sound muddy if excessive. Mids (500-2000 Hz) are where most melodic content lives, including vocals and lead instruments. Upper-mids (2000-4000 Hz) carry vocal presence and the attack of guitars and snares. Presence (4000-6000 Hz) adds clarity and definition. Brilliance (6000-20000 Hz) includes sibilance, cymbals, and the airy quality of high-frequency content. Spectrum analyzers display the energy in each of these regions.

How FFT Powers the Display

The Fast Fourier Transform (FFT) is the mathematical algorithm that converts time-domain audio samples into frequency-domain data. An FFT size of 2048 samples (at 44.1 kHz sample rate) produces 1024 frequency bins, each approximately 21.5 Hz wide. The lower bins resolve low frequencies, and the upper bins resolve high frequencies. However, human pitch perception is logarithmic: we perceive the interval between 100 Hz and 200 Hz as the same "distance" as between 1000 Hz and 2000 Hz (both are one octave). For this reason, spectrum analyzers typically group FFT bins on a logarithmic scale, allocating more visual space to lower frequencies and progressively grouping more bins together at higher frequencies. This produces a display that matches our perception of pitch.

Types of Spectrum Visualizations

The classic bar graph is just one way to display spectral data. A line spectrum connects the amplitude values with a smooth curve, producing a flowing mountain-like silhouette. A circular spectrum arranges frequency bands around a circle, with amplitude extending radially outward. A spectrogram (or waterfall display) shows frequency on one axis, time on the other, and amplitude as color, revealing how the spectrum evolves over the duration of the song. A 3D terrain visualization maps frequency to X position, time to Z position (depth), and amplitude to Y position (height), creating a landscape that you can orbit around. Each visualization type emphasizes different aspects of the audio: bar graphs are great for real-time monitoring, while spectrograms excel at showing long-term patterns.

Using Spectrum Data in Visualizers

In a music visualizer, spectrum data is one of the primary inputs driving visual behavior. A common technique is splitting the spectrum into a few broad bands (bass, mids, treble) and assigning each band to a different visual parameter. The bass band might control the scale of a central object, the mids might control color hue, and the treble might control particle emission rate. For more nuanced results, individual narrow bands can drive specific elements: the frequency range of a vocal formant might control a particular visual layer. Smoothing is essential to prevent jittery visuals: raw FFT data changes dramatically frame to frame, so exponential averaging or spring-based smoothing creates more pleasing motion. Zeltor Labs normalizes spectrum data per-song to ensure consistent visual behavior regardless of how a track is mastered.

How MusicMind Uses This

MusicMind's Timbral Fingerprint layer (L10) extends the spectrum analyzer concept into perceptual territory. Rather than just displaying frequency bins, L10 reads texture, brightness, roughness, and warmth — translating raw spectral data into how the sound actually feels to human ears.

Bark Scale Frequency Bands

Real data from the Zeltor Labs audio intelligence engine, based on published music cognition research.

sub bass
80 Hz
bass
100 Hz
low mid
100 Hz
mid
100 Hz
mid
110 Hz
mid
120 Hz
upper mid
140 Hz
upper mid
150 Hz
upper mid
160 Hz
presence
190 Hz
presence
210 Hz
presence
240 Hz
presence
280 Hz
brilliance
320 Hz
brilliance
380 Hz
brilliance
450 Hz
brilliance
550 Hz
air
700 Hz
air
900 Hz
air
1100 Hz
ultra high
1300 Hz
ultra high
1800 Hz
ultra high
2500 Hz
ultra high
3500 Hz
ultra high
5000 Hz

Frequently Asked Questions

What is the difference between a spectrum analyzer and a waveform display?+
A waveform shows amplitude over time (time domain). A spectrum analyzer shows amplitude over frequency (frequency domain) at a given moment. The waveform tells you how loud the audio is; the spectrum tells you which frequencies are present.
Why do spectrum analyzers use a logarithmic scale?+
Human pitch perception is logarithmic. An octave (doubling of frequency) sounds like the same interval whether it is 100-200 Hz or 5000-10000 Hz. A logarithmic scale matches visual spacing to perceptual spacing, making the display more intuitive.
What FFT size should I use?+
Higher FFT sizes (4096, 8192) give better frequency resolution but worse time resolution. Lower sizes (1024, 2048) respond faster but distinguish fewer frequencies. 2048 is a common default that balances both for music visualization.
Can spectrum analysis detect individual notes?+
With sufficient FFT resolution, yes. However, in a typical music mix, many notes overlap in frequency. Techniques like harmonic product spectrum or constant-Q transforms are better suited for note detection than standard FFT.
Analyze a track — free