Re: fourier anlysis of square wave...



Ron N. wrote:
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).

That's what I figure happened. Even the positive harmonics, when folded back wouldn't land on harmonic frequencies because the folding frequency wouldn't be centered.

Jerry
--
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
.



Relevant Pages

  • 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: fourier anlysis of square wave...
    ... samples (the clue was the fft result filling only odd ... Your test square wave had a frequency of fs/16. ... The harmonics fell in those bins, ...
    (comp.dsp)
  • 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)
  • Re: Are harmonics real?
    ... Harmonics in a signal are as real as those mathematics, ... < case of the Fourier transform that's pretty darn real -- you can sum up ... related signals, though not all. ... < The FFT case is a bit problematical, because the FFT is only exact if you ...
    (comp.dsp)
  • Re: Are harmonics real?
    ... other issues could create harmonics, ... It's interesting that a "debate has raged" as to whether harmonics are being "manufactured" by the FFT calculation. ... One must imagine that by "FFT calculation" folks must mean the entire process including word lengths, arithmetic, etc. because the FFT calculation itself I don't believe / see how it should be suspect. ...
    (comp.dsp)