applies hamming window to signal