How to calculate a harmonic of a square wave

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
3 replies · 8K views
bigfattyfatfat
Messages
2
Reaction score
0
Hi,

I'm a bit of a newbie to additive synthesis.. I just want to clarify that I am doing the correct calculation before continuing.

If I wanted to calculate the 5th harmonic of a square wave (the fundamental freq. being 200Hz and the amplitude of the fundamental being 1)

would the calculation be

1/5 * sin (2 * 3.14 * 1000) =

?

Thanks in advance
 
Physics news on Phys.org
Thanks.

Actually I've just realized the 5th harmonic would be 9, so it would be

1/9 * sin (2 * 3.14 * 9F * t) =

But do you know what the 't' is equal to?

Thanks
 
bigfattyfatfat said:
Thanks.

Actually I've just realized the 5th harmonic would be 9, so it would be

1/9 * sin (2 * 3.14 * 9F * t) =

But do you know what the 't' is equal to?

Thanks

No, convention is that the nth harmonic is harmonically related to the first (the fundamental) by fn = n*f1.

"t" is time. You have a square wave that is a summation of harmonics, each of which is also a function of time (a sinusoidal one).

You still don't have a 4/π in your formulas ... you need it to get a square wave of unity amplitude.