Re: fourier anlysis of square wave...



On Nov 30, 6:00 pm, Jerry Avins <j...@xxxxxxxx> wrote:
Ron N. wrote:

...

64 cycles of period 16 (8 ones, 8 minus ones) fills 1024
samples (the clue was the fft result filling only odd
multiples of 16 bins).

Your test square wave had a frequency of fs/16. The harmonics should
fall at 3fs/16, 5fs/16 , 7fs/16 (ok so far), 9fs/16 (aliases, but 19 dB
down), 11fs/16 (aliases 21 dB down), and so on. Is that what you see?

The harmonics fell in those bins (and only those bins),
but the higher harmonics did not drop off at 1/bin_number.
Maybe the harmonics from the negative frequencies were
wrapping around from the opposite side of the fft and
interfering constructively in the middle. That would be
aliasing. But nothing appeared in non-harmonic bins. So
this aliasing would not be the cause of the OP's observation
of seeing "non-harmonic tones" in his FFT plot... unless
his square waves were not periodic in the FFT aperture,
in which case the negative frequency harmonics would not
overlap the positive frequency harmonics, but appear
in between them (in addition to the rectangular windowing
artifacts).


.



Relevant Pages

  • Re: fourier anlysis of square wave...
    ... samples (the clue was the fft result filling only odd ... but the higher harmonics did not drop off at 1/bin_number. ... But nothing appeared in non-harmonic bins. ... overlap the positive frequency harmonics, ...
    (comp.dsp)
  • Re: square wave harmonic theory (time domain)
    ... If I took a 1 KHz square wave and triggered my ADC on the rising edge of ... If the FFT shows high frequencies relating to 1KHz where are ... So as John pointed out - the harmonics are really there if you sample the ... square wave there is no harmonic content? ...
    (sci.electronics.design)
  • Re: square wave harmonic theory (time domain)
    ... If I took a 1 KHz square wave and triggered my ADC on the rising edge of ... If the FFT shows high frequencies relating to 1KHz where are ... So as John pointed out - the harmonics are really there if you sample the ... square wave there is no harmonic content? ...
    (sci.electronics.design)
  • Re: Best way to measure precise harmonics?
    ... ostensibly due to a limited-sample FFT. ... containing a fundamental and a bunch of its near harmonics. ... looking for overtones in the spectrum of an excited string, ... the analyzer can resolve them. ...
    (sci.electronics.design)
  • Re: Guitar Tuner - Low frequencies are not working
    ... I started by trying to use the FFT ... at the moment of the attack, the fundamental has barely become established, and octave errors are very possible - so how long are you waiting (over how many FFT windows) before trying to derive the pitch? ... One method is in fact to detect the harmonics, compute their separation, and derive the fundamental as the average of those intervals. ... The high harmonics develop first - especially if you pick close to the bridge. ...
    (comp.dsp)