Results 1 to 5 of 5
  1. #1
    joseluisbz is offline Member
    Join Date
    Jan 2010
    Posts
    9
    Rep Power
    0

    Default Spectrum Analyzer

    Cordial Greetings:

    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.
    Sample, etc.
    Like this...
    http://www.relisoft.com/freeware/freq.html

    Thanks.
    Last edited by joseluisbz; 05-04-2010 at 09:06 AM.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    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.

  3. #3
    joseluisbz is offline Member
    Join Date
    Jan 2010
    Posts
    9
    Rep Power
    0

    Default

    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.
    Thank you.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    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.

  5. #5
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    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.

Similar Threads

  1. Index out of bounds Numeric analyzer.
    By Sean_J in forum New To Java
    Replies: 3
    Last Post: 03-17-2010, 03:06 PM
  2. Lucene Analyzer that can handle C++ vs C#
    By maxschlein in forum Lucene
    Replies: 0
    Last Post: 12-11-2009, 06:03 PM
  3. Using Memory Analyzer to examine the heap
    By Bolo33 in forum Eclipse
    Replies: 0
    Last Post: 06-30-2009, 02:28 AM
  4. Dependency Analyzer 1.0.3-rc0
    By levent in forum Java Software
    Replies: 0
    Last Post: 07-30-2007, 04:34 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •