Re: AudioUnit and FFT
Re: AudioUnit and FFT
- Subject: Re: AudioUnit and FFT
- From: Daniel Todd Currie <email@hidden>
- Date: Fri, 27 Feb 2004 14:25:04 -0800
A very simple implementation using FFTW on a single-channel array is as
easy as this:
fftwf_plan p;
p = fftwf_plan_r2r_1d(fftSize, inputData, outputData, FFTW_R2HC,
FFTW_ESTIMATE);
fftwf_execute(p);
fftwf_destroy_plan(p);
inputData and outputData are both arrays of type 'float', malloced like
so:
inputData = fftwf_malloc(bufferSize * sizeof(float));
outputData = fftwf_malloc(bufferSize * sizeof(float));
Hope this helps.
-- Daniel Currie
On 2004 Feb 27, at 06:53, Vincent Verfaille wrote:
Dear all,
I am a newbie in Objective-C and Audio-Unit writting, but not in Fx
programming.
I'm usually using Matlab, and I would like to develop as AudioUnits
effects I've already developed in Matlab, and that use FFT/IFFT
block-by-block processing.
My aim is to provide my new sound transformations as open-source, as
soon as they are implemented.
Does anybody have tricks about how to do the basic do-nothing Fx (FFT
and the IFFT with no modification), for example using the esotheric
FFTW?
Any help, partial codes and so on would be really appreciated :)
Thanks in advance,
Vincent Verfaille
_______________________________________________
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.
_______________________________________________
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.