window function between program and math
The fact that you are using a time limited sample of the waveform is the rectangular window that is referenced. Since the fft operates on a time limited sequence, it is mathematically identical to a infinitely long duration of that sequence multiplied the rectangular window.