Csound Csound-dev Csound-tekno Search About

[Csnd] value of harmonics

Date2010-09-06 02:47
FromMichael Mossey
Subject[Csnd] value of harmonics
  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"

Date2010-09-06 08:03
FromOeyvind Brandtsegg
Subject[Csnd] Re: value of harmonics
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"


Date2010-09-06 08:10
Fromjoachim heintz
Subject[Csnd] Re: value of harmonics
the formulas are mentioned here
http://www.csounds.com/udo/displayOpcode.php?opcode_id=100
and there is an example called Waveform Mix in the Synth section of  
the QuteCsound examples.

i remember we had a similar question perhaps half a year ago, and rory  
pointed to a site. you should be able to find it in the list archive.

	joachim


Am 06.09.2010 um 03:47 schrieb 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"