Bins of a spectrum
You will learn
What one DFT bin measures, and why a tone between bins leaks into all of them.
A DFT of L points has L bins, each fs/L wide. A tone that fits a whole number of cycles in the window lands in one bin at 0 dB and nowhere else. Move it half a bin and the peak drops to -3.7 dB and leaks into every bin, because the DFT treats the window as one period of a repeat and the repeat jumps at the seam. A Hann window tapers the seam: at 8.5 bins on 64 points it lowers bin 20 from -33.2 dB to -73.9 dB. The spec signals.t27 computes every bin.