How to Change Audacity Spectrogram Resolution and Size
This guide explains how to configure the visual size, frequency range, and frequency resolution of the Audacity spectrogram display. By accessing the track-specific settings or global preferences, you can adjust the Fast Fourier Transform (FFT) window size to balance time and frequency precision, change the frequency scale to focus on specific audio bands, and resize the track interface for optimal audio analysis.
Accessing Spectrogram Settings
You can modify spectrogram parameters globally for all future tracks or specifically for an individual track.
- For a Single Track: Click the track title dropdown menu in the track control panel on the left, then select Spectrogram Settings.
- For All Tracks (Global Preferences): Navigate to Edit > Preferences (on macOS, Audacity > Preferences), then select Tracks > Spectrograms from the left-hand menu.
Configuring Frequency Resolution (Window Size)
The frequency resolution of a spectrogram is directly controlled by the Window Size setting, which uses a Fast Fourier Transform (FFT) algorithm.
- Open the Spectrogram Settings.
- Locate the Algorithm section and find the Window size dropdown menu.
- Select an appropriate value based on your analysis needs:
- Higher Window Sizes (2048 to 8192): Increases frequency resolution, allowing you to distinguish between close pitches and subtle harmonics. However, this lowers temporal (time) resolution, causing rapid events like clicks or drum hits to appear smeared horizontally.
- Lower Window Sizes (128 to 512): Increases time resolution, making transients, percussion, and rapid timing changes sharper. However, this blurs vertical frequency distinctions, making it harder to identify specific pitches.
- Default (1024): Offers a balanced compromise between time and frequency resolution for general-purpose editing.
- Set the Window type (default is usually Hann), which controls spectral leakage. Blackman-Harris or Hann provide clean results for standard frequency analysis.
Adjusting the Frequency Range and Scale
To focus on a specific frequency band rather than viewing the entire audio spectrum (0 Hz to Nyquist frequency):
- In the Range section of the settings, adjust:
- Min Frequency (Hz): Enter the lowest frequency you want visible (e.g., 80 Hz to cut out low-end rumble).
- Max Frequency (Hz): Enter the upper limit of interest (e.g., 8000 Hz for speech analysis).
- Choose a Scale type:
- Linear: Spreads frequencies evenly; best for analyzing high-frequency content and overtone spacing.
- Logarithmic: Allocates more visual space to lower and mid frequencies, closely mimicking human hearing.
- Mel / Bark / ERB: Alternative psychoacoustic scales useful for speech and vocal analysis.
Changing the Physical Display Size
To physically expand the spectrogram display for better visual precision:
- Vertical Size: Hover your mouse over the bottom border of the track panel until the cursor turns into a double-headed arrow, then click and drag downward to expand the track height.
- Vertical Zoom: Right-click the vertical frequency scale ruler on the left edge of the waveform to zoom in, or shift-right-click to zoom out. You can also click and drag a specific range directly on the vertical ruler to isolate it.
- Click Apply or OK in the settings window to render your adjustments.