Thanks all that's great!!
"Jerry Coffin" <jcoffin@taeus.com> wrote in message
news:MPG.19e9569167fc7214989b4b@news.clspco.adelph ia.net...[color=blue]
> In article <jECfb.150$1Q3.760@news.indigo.ie>,
jo@fo.mo says...[color=green]
> > Hi all,
> > I need to produce a sine wave and use the WaveOut APi to sound it on my
> > sound card.[/color]
>
> std::sin would be the obvious way.
>[color=green]
> > I also need to compute Fast Fourier Transform to modify the Sine wave.[/color]
>
> If you're starting with a sine wave, the result of an FFT is a foregone
> conclusion -- a sine wave is a pure fundamental, so you basically get a
> spike to 100% at the fundamental, and above that you'll get a tiny bit
> of "noise" that's basically just an artifact of the sampling.
>
> If you want to add overtones, you don't need to apply an FFT to a sine
> wave to start with -- you can just put in the overtones you want, and
> then do an inverse FFT to get your waveform.
>
> --
> Later,
> Jerry.
>
> The universe is a figment of its own imagination.[/color]