Creating freqeuncy bars

Hi,

I'm trying to implement frequency bars (the ones that you would see in winamp or media player) where the bars change as an audio file progresses.

e.g.

I抦 starting with .wav files to keep things simple and so far I抳e created an application that reads a wav file and plays it and I can extract the frames / bytes for each sample.

I抳e been reading allot about FFT (fast Fourier transforms) DFT etc.. and understand them to a point.

The difficulty I抦 having is understanding the variables in the equations in relation to the data / samples I have and what I get after performing the transform.

The information I would like to have is the amplitude / power of each frequency bar so that I can display graphically and manipulate as the sound / song progresses

Can any one help my head is fried!!!

Thanks and kind rgds

[872 byte] By [Jason_Homea] at [2007-10-2 18:46:03]
# 1
After FFT you have the amplitudes in the various frequencies. So if you FFT to get an array of 512 elements and you want to display 16 bands, you calculate the nth band by adding (the absolute values of, probably) the nth block of 32 elements from the array.
YAT_Archivista at 2007-7-13 20:08:37 > top of Java-index,Other Topics,Algorithms...
# 2
Briliant thanks!So simple was looking far to deep into the FFT algoritms! I can now see where i'm going with thisKind Rgds
Jason_Homea at 2007-7-13 20:08:37 > top of Java-index,Other Topics,Algorithms...