views:

59

answers:

2

Is there a nice (pure Java) open source libary to get the frequence spectrum of samples taken from a AudioInputStream?

A: 

The website for FFTW, one of the most popular FFT libraries, supposedly has Java bindings. Check out the descriptions on http://www.fftw.org/download.html .

Reinderien
+1  A: 

There are several FFT libraries, for example Apache Commons Math includes a FFT.

Bear in mind, though, that spectrum estimation is something more complicated than simply making a Fourier transform (DFT). (It's true, though, that the most basic method, the Periodogram, amounts to computing the DFT and taking its absolute value).

leonbloy