An FFT shows how an audio window distributes strength across frequency bins. The strongest bin or interpolated peak can identify a prominent component. It can be a harmonic or a different source from the one you meant to measure. Use the labeled peak and a separate fundamental estimate when the distinction matters.
Convert a Bin Number to Frequency
A fast Fourier transform calculates the discrete Fourier transform efficiently. Its output can be converted to magnitude or a relative level for a spectrum. Bin k has a frequency of k × sample rate ÷ FFT length. Use the actual processing sample rate when labeling the result.
For a focused comparison, use the save pitch frames with their source context workflow. Keep the original source and relevant settings so a new observation remains distinguishable from an interpretation or calculation.
For a 48,000 Hz sample rate and a 2,048-point FFT, the spacing is 23.4375 Hz. Bin 32 is 750 Hz. With the same sample rate and 4,096 real samples, bins are about 11.72 Hz apart and each window spans roughly twice as much time. The longer real window gives more information about steady frequency components.
| Real sample count and FFT length | Bin spacing at 48 kHz | Window duration |
|---|---|---|
| 1,024 | 46.875 Hz | 21.33 ms |
| 2,048 | 23.4375 Hz | 42.67 ms |
| 4,096 | 11.71875 Hz | 85.33 ms |
Bin spacing is the grid used by the display. The ability to distinguish nearby tones also depends on the window shape, signal levels and noise. A single strong tone’s frequency can sometimes be estimated between bins.
Why the Strongest Bin Can Be Near the True Component
A 750 Hz tone aligns with bin 32 in the 2,048-point example. A 760 Hz tone falls between bin centers. Its energy can spread across several bins, especially when the window boundaries cut across a partial cycle. This spreading is called spectral leakage.
Tapering the samples with a window function such as Hann can reduce distant leakage. It also changes the width and height of peaks. A peak picker can compare neighboring bins to estimate the center. Record whether a result is a bin frequency or an interpolated estimate.
What Zero Padding Adds
If you append zeros to a 2,048-sample window and compute an 8,192-point FFT, the grid spacing becomes about 5.86 Hz. The observation still contains only 2,048 original samples. A denser grid can make the plotted peak shape easier to sample. A longer real recording is needed for the additional observation time.
When comparing two settings, write down both the number of audio samples and the transform length. That makes it clear whether the window actually became longer or the plot just received more bins.
How the Strongest Peak and F0 Can Differ
A 250 Hz tone with a strong second harmonic can produce a largest peak near 500 Hz. The waveform can still repeat at 250 Hz. Compare the distances between several harmonic peaks and the accepted time-domain pitch. The guide to fundamental frequency and harmonics works through why both values can be valid.
Use the frequency detector for the strongest spectral components and the pitch identifier for a separate fundamental estimate. Select the same stable interval when comparing them. The guide to pitch versus frequency defines the two results.
Check the Peak With a Small Experiment
Play one known steady tone, freeze the spectrum and record the window settings. Then use a harmonic-rich version of the same fundamental. See whether the largest peak moves to a higher component. If F0 stays close, label the strong component and the fundamental separately.
Try a short and long real window and compare the shapes. The guide to reading a spectrum explains how axes and relative levels affect the appearance. If you change the input or normalize the display, document that change before comparing amplitudes.
Save the Peak With Its Window
A good annotation says which interval was frozen and how the result was calculated. For example, “strongest interpolated region near 760 Hz in a steady segment, 48 kHz sample rate, 2,048 recorded samples.” This makes a small difference in another graph easier to investigate.
Compare Two Peaks at Similar Levels
When two tones sit closer than the width of a window’s main peak, they can appear as one broadened region. Repeat with more real samples and inspect both sides of the peak. Check that the tones stayed steady during the longer frame, or separate analysis windows may describe different moments.
Frequently Asked Questions
Is FFT bin spacing the same as accuracy?
It gives the frequency grid of the transform. Noise, interpolation and the signal determine the accuracy of a peak estimate. Nearby components also need enough real observation time to resolve.
Does zero padding let me resolve two close notes?
It makes the computed grid denser. It does not add new audio. Resolving two close components depends on the real window and the conditions of the signal.
Is the highest bin a reliable musical note detector?
For a clean sine tone it can give a useful estimate. Harmonics and competing sources can dominate real audio. Compare the fundamental and timing when the task is a musical note.