Questions tagged [kissfft]

KissFFT is a lightweight FFT implementation in C. The emphasis was put on making the code small, and able to be implemented quickly. It isn't the fastest computationally, but the time lost crunching numbers is more than made up for by how easy it is to use.

70 questions
0
votes
0 answers

Create spectrum from KissFFT and QAudioProbe

I'm trying to create a simple spectrum via QAudioProbe but my spectrum does not "feel the beat". every bin in spectrum just goes high and low. Here is my code processing buffer from QAudioProbe : void Waveform::bufferReady(QAudioBuffer buffer){ …
SuperStar
  • 1
  • 1
0
votes
1 answer

How to set the frequency band of my array after fft

How I can set frequency band to my array from KissFFT? Sampling frequency is 44100 and I need to set it to my array realPartFFT. I have no idea, how it works. I need to plot my spectrum chart to see if it counts right. When I plot it now, it still…
user7700572
0
votes
2 answers

Compiling kiss fft with float and double support in the same app

I'm trying to get kiss fft to compile both float and double implementations in the same app using visual studio 2013. I see that all I need to do is set the kiss_fft_scalar to double and re-compile to get double. To this end I put together a header…
Goz
  • 61,365
  • 24
  • 124
  • 204
0
votes
1 answer

Equivalent of FFTW's fftw_plan_r2r_2d in KISS FFT

Currently I am using FFTW's "fftw_plan_r2r_2d" with FFTW_REDFT10 as a kind and FFTW_ESTIMATE as the flag in my project. I am thinking of using KISSFFT for the transforms.I need the set of calls needed to perform the same operation in KISS FFT. I…
0
votes
1 answer

How to use kissFFT with C++ vector correctly?

I want to use kissFFT in a C++ project with std::vector to easily handle a signal of arbitrary length. To achieve this I edited this SO answer from the author of kissFFT. I replaced std::complex x[nfft]; with vector>…
Semjon Mössinger
  • 1,798
  • 3
  • 22
  • 32
0
votes
1 answer

Giving large no of samples to KissFFT

I wanted to find the 4096 point DFT of an audio signal of duration 10 seconds with sampling rate 44100 Hz. Hence there are 441000 input samples. But KissFFT takes only up to 4096 as input size. How to go about finding FFT of such a large signal?
Bhavin Chowksi
  • 105
  • 3
  • 8
0
votes
1 answer

kissfft - Inverse Real FFT gives NaN

The real inverse FFT gives me an array full of NaNs instead of floats. kiss_fftri(conf,complex_array,output); The complex_array is normal, nothing wrong with the values i guess. kiss_fftr_cfg conf = kiss_fftr_alloc(size,1,NULL,NULL); The conf…
Rok
  • 787
  • 9
  • 17
0
votes
1 answer

Kiss fft does not work after giving it more than 32 samples

I am trying to take data from an accelerometer and apply Kiss FFT to the samples. I'm using a Freescale Kinetis FRDM-K22F board. I want to use 64 samples, but when I run the program I get an error saying "kiss fft usage error: improper alloc" I…
Reggie I
  • 1
  • 1
0
votes
1 answer

Including Kiss_FFT library in visual studio and Eclips

I started with learning C a few days ago and i would like to include KISS_FFT Library in visual studio and Eclips. Please help me how i can do that. You will find the library in this link:
zmalqp
  • 1
  • 1
  • 1
0
votes
2 answers

KissFFT and Power of Two

I have read in a lot of different places that an FFT algorithm needs to have an input array size that is a power of two, like 512 or 1024. I also found a lot of different algorithms that compute FFT, like Cooley-Tuckey and Bluestein (this one also…
Will
  • 804
  • 2
  • 8
  • 17
0
votes
0 answers

Kiss FFT on a dsPIC33

I have been trying to get KissFFT to work on a dsPIC, however after trying various different ways, the output is not what it should be. I was hoping to get some help to see if there are any configurations that I may be overlooking or if its just…
Sam
  • 350
  • 2
  • 9
0
votes
1 answer

How to deallocate memory allocated by Kiss FFT?

I'm working on a C++ project using a FRDM-KL25Z board to measure vibration. My code is working but I need it running on a loop. I'm having problems with memory, I don't have enough space to store the values twice. I used free() commands but even…
Will
  • 804
  • 2
  • 8
  • 17
0
votes
1 answer

Kissfftr different results x86 - Atheros AR9331

This is my first question on stackoverflow and my englsich is unfortunately poor. But I want to try it. A customized routine of twotonetest of kissfft brings on two different systems very different results. The under ubuntu translated with gcc on…
0
votes
1 answer

how can I define plan and executing it in Kiss FFT

do you see any mistake in the following? cfg = kiss_fftr_alloc(dim,1,NULL,NULL); kiss_fftr(cfg,in,out); is it equal to: ? cfg = fftw_plan_dft_c2r_1d(dim, in , out, FFTW_ESTIMATE); fftw_execute(cfg);
0
votes
1 answer

Is there anybody who knows how I can replace these APIs from fftw by Kiss-fft APIs?

Is there anybody who knows how I can replace these APIs from fftw by Kiss-fft APIs? fftw_plan fftw_plan_dft_r2c_2d(int n0, int n1,double *in, fftw_complex *out,unsigned flags); fftw_plan fftw_plan_dft_c2r_1d(int n0,fftw_complex *in, double…