How to plot a .wav file

Discussion in 'Software' started by Coder Ken, Jan 1, 2009.

  1. Coder Ken

    Coder Ken

    Joined:
    Jan 1, 2009
    Messages:
    2
    I am writing a java program to plot the waveform of a .wav file. I understand that the .wav files are in an uncompressed PCM format. So, I read the file and found the start of the data. I am able to pull the data and play it and cut clips out of it and play them; however, when I plot the plot the data, most of the data is above a value of 120 and below the value of -120, on a scale of -128 to 127. This looks like square pulses with minimum fluctuations on the top of the pulses (or bottom for those below -120).

    Are there any methods in the javax.sound package that can help me?

    Are there some additional computations I should perform on the raw PCM data in the file? If so, what?

    Coder Ken
    Coder Ken, Jan 1, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Annette Kurten

    Have I lost the plot???

    Annette Kurten, Apr 5, 2004, in forum: Computer Support
    Replies:
    24
    Views:
    790
    AvengerĀ©
    Apr 6, 2004
  2. Richard Owlett
    Replies:
    2
    Views:
    2,766
    Richard Owlett
    May 22, 2004
  3. Thaqalain

    Substituting AOL Wav files with MSN Wav files

    Thaqalain, Jul 7, 2005, in forum: Computer Support
    Replies:
    6
    Views:
    6,091
    Thaqalain
    Jul 7, 2005
  4. Rutgar

    ALIENS - Major Plot Hole

    Rutgar, Dec 14, 2003, in forum: DVD Video
    Replies:
    22
    Views:
    1,801
    jayembee
    Dec 19, 2003
  5. makbertodelete@anothermessage.com

    CD-DA to Wav to DVD as Wav files?

    makbertodelete@anothermessage.com, Sep 25, 2005, in forum: DVD Video
    Replies:
    10
    Views:
    1,505
    Steven Sullivan
    Sep 27, 2005
Loading...

Share This Page