Re: [LAD] fftw3 issue with transform higher than 1024

From: Gabriel M. Beddingfield <gabriel@email-addr-hidden>
Date: Mon Jul 27 2009 - 05:15:20 EEST

On Sat, 25 Jul 2009, Justin Smith wrote:
>>
>> I am using the fftw3 library to implement a transform in a array of 5120
>> elements .
>> I have this array from a program that I created modifying the arecord
>> program.
[snip]
>
> I don't know fftw specifically, but I am fairly certain that you need
> a table size that is an even power of two for fft in general (maybe
> you can adjust your code to use 4096 or 8192?).

Ditto that.

If your data is 5120 samples... either truncate it to 4096 samples or pad
it with zeros util you have 8192 samples. (The zeros won't affect your
transform.)

HTH,
Gabriel

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Mon Jul 27 08:15:04 2009

This archive was generated by hypermail 2.1.8 : Mon Jul 27 2009 - 08:15:04 EEST