Re: Altivec FFT
Re: Altivec FFT
- Subject: Re: Altivec FFT
- From: Daniel Todd Currie <email@hidden>
- Date: Sun, 25 Jan 2004 19:34:29 -0800
I'm no expert, but isn't FFT for decomposition of acquired data?
If I wanted to create a buffer of sinewave data, I would think it far
easier to just do:
unsigned i;
float sineBuffer[512];
float desiredFrequency = 440; // 440 Hz, for example
while(i < 512)
{
sineBuffer[i] = sin(2 * M_PI * i * (desiredFrequency / 44100)); // for
sample rates of 44.1 kHz
}
// Daniel Currie
On 2004 Jan 25, at 18:24, John Mullins wrote:
Hey,
I'm trying to use the FFT functions in vDSP to generate Sine, Square,
etc, but I'm pretty clueless as to how to accomplish this. If someone
could send me the code to generate a sine wave with it, or some
already existing sample code that would be great.
I don't really understand how to actually grab from the table , or
where it puts the information generated... thanks
John Mullins
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
References: | |
| >Altivec FFT (From: John Mullins <email@hidden>) |