Frequency analysis with DFT