Clojure/Java: Java libraries for spectrum analysis of sound?

jkndrkn picture jkndrkn · Aug 9, 2010 · Viewed 25.7k times · Source

I am looking for a library that can accept a chunk of audio data and return the average amplitude over time within a given frequency band.

I've already asked this question over at comp.dsp, but it's clear to me that acquiring the know-how to build this on my own using a basic FFT library is going to require more time and energy than I have at present. Here is my original question with more detai: http://groups.google.com/group/comp.dsp/browse_thread/thread/e04f78d439e9e2bd

I've found lots of nice libraries for playing with sound (I used JSyn in the past), but none of these seem to be set up to return quick and dirty spectral information about a sound sample.

Any pointers would be much appreciated.

Answer

stacker picture stacker · Aug 15, 2010

This Archived Blog shows a java implementation of the FFT algorithm which is very concise and reads audio files and calculates the frequency spectrum.

You could also check Jtranforms open source FFT library

Unfortunately the blog is gone, here are some other resources on FFT.