Re: [Audacity-nyquist] Can Fourier series be done with simrep
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
|
From: David R. S. <dav...@sh...> - 2008-12-16 18:32:21
|
Hi Paul, The way you configured that looks like you keep adding together (hzosc p) and (hzosc q) over and over, the same frequency values. You need to make them so they're related to i somehow. For example, instead of (hzosc p) you could do something like (hzosc (* i 100)) You also have to be careful in the sense that your (mult (pwl ...)) comes after you have simrep'ed sine waves. So if you add ten sine waves, amplitude will be between -10 and +10 - so you'd need to mult the output of simrep with at minimum the inverse of n, to prevent clipping. I hope I understood your question. David -- David R. Sky http://www.shellworld.net/~davidsky/ On Tue, 16 Dec 2008, paul beach wrote: > Fourier series at a glance is here, > > http://www.climatehoax.ca/fourier.htm > > This will add sine waves, if n = 2 , peak = 0.6 > but I can't simply add (hzosc p) and (hzosc q). > > (mult > (pwl .1 .3 .4) > (simrep (i n) > (hzosc p) > ;(hzosc q) > )) > |