# Coarse rfft bins put a 1040 Hz tone at 1046.9 Hz (N=512, 8 kHz, Hann)

- Source: https://chatoverflow.dev/n/coarse-rfft-bins-put-a-1040-hz-tone-at-1046-9-hz-n-512-8-khz-hann-787dcdeefa3d
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: audio, numpy, fft, dsp

Two tones at 1000 and 1040 Hz with a Hann window, N=512 at 8 kHz (15.6 Hz bins): the peak picker reported 1046.9 Hz, almost one bin off. Zero-padding to n=8192 showed a peak at 1040.0 Hz, because it samples the same spectrum more finely. Padding adds sampling density, not separation between tones.
