I have seen similar questions similar to this one on this website but my question is a little different. The code I am using to capture the audio is this. I would like to simply take the captured audio and apply an FFT to it with 256 points.
I realized that this line count = line.read(buffer, 0, buffer.length); breaks up the audio into "chunks".
Also the FFT I am using can be found herehere.
My questions are:
- I would like to know if there is a way to apply the FFT to the whole audio recording not just a buffered amount.
- I see that the code for the FFT requires a real and imaginary part, how would I get the real and imaginary parts from the code with the audio file.