I want to implement an application like Spectrum Analyzer of Winamp.
For an Array of bytes from audio file (AudioInputStream).
Someone knows that?
I need code for understand and make it.
What you've tried actually, do you have any idea or design for that?
Step down your application into several. As the first thing checkout how to do such kind of dynamic graphical stuff with Java. Refer to Swing, you can have a better idea. Take start on that way.
Thanks for your response.
But, My interest is not the technology for graphics, else the algorithm and sample code for calculate the data for generate the graphic.
That's what I told you lol. That's the way you have to follow. Because I don't think it's possible to find the exact implementation you want on anywhere, even on the web.
To convert from time samples to the frequency domain, use an FFT (fast Fourier transform). There are FFT libraries for Java freely available, so you don't have to write one. With most FFT libraries, you have to swap the lower and upper halves of the transformed data to create a representation that makes sense to humans. With some libraries you need to replicate the output, flip it, and precede the output with that flipped version. If you want to play in the frequency domain, you really need to learn what FFT's are all about.