| The information is available from several sources, but I have not been
able to find the "one source for all".
Wikipedia has reasonably good information on this iirc.
Here's some Csound ftables (up to the 20th harmonic)
Saw wave, all harmonics are used, each harmonic has 1/N amplitude
giSaw_A ftgen 0, 0, 65536, 10, 1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7,
1/8,\ ; (additive) saw wave
1/9, 1/10, 1/11, 1/12, 1/13, 1/14,\
1/15, 1/16, 1/17, 1/18, 1/19, 1/20
Square wave, only odd harmonics are used, each harmonic has 1/N amplitude
giSquare_A ftgen 0, 0, 65536, 10, 1, 0, 1/3, 0, 1/5, 0, 1/7, 0, 1/9,
\ ; (additive) square wave
0, 1/11, 0, 1/13, 0, 1/15, 0, \
1/17, 0, 1/19
Triangle wave, only odd harmonics are used,
each harmonic has (1/N*N) amplitude,
and every second (of the odd) harmonic is phase inverted
giTriangle_A ftgen 0, 0, 65536, 9, 1, 1, 0, \ ; (additive)triangle wave
3, 1/(3*3), 180, \
5, 1/(5*5), 0, \
7, 1/(7*7), 180, \
9, 1/(9*9), 0, \
11, 1/(11*11), 180, \
13, 1/(13*13), 0, \
15, 1/(15*15), 180, \
17, 1/(17*17), 0, \
19, 1/(19*19), 180
best
Oeyvind
2010/9/6 Michael Mossey :
> Can anyone point me to an online reference that explains the values of each
> harmonic for common waveforms like square wave, triangle wave, sawtooth
> wave?
>
> I remember they look something like
> fundamental=1
> harmonics: 1/2, 1/3, 1/4, 1/5, ...
>
> Thanks,
> Mike
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|