Add the hanning windows for spectrum calculation.