?
Solved

how to plot .wav file 2

Posted on 2003-11-29
6
Medium Priority
?
627 Views
Last Modified: 2012-06-21
today is extremely hot:
   continue that question I asked yesterday..
  I am planning to use a java application to read the data from .wav file and plot the waveform. I want to plot the data as double format. those data can be used to do further analysis such fft or more. Can you tell me how to extract the raw data from wave file and convert them to double format that I can use to do FFT.

   please !!! Christmas is coming !
                                                         
                                                            Roy from melbourne
0
Comment
Question by:royoz2003
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 

Accepted Solution

by:
kengoudsward earned 120 total points
ID: 9893446
Hi Roy,

I don't have a specific example of how to do this but...
Java can do regular file IO and a .wav is really just a regular file, as long as you know the format. So what you need to do is learn about the format.
.wav is actually a variant on the RIFF format, which is fairly straightforward and uses some nice well-defined headers to wrap the actual data to make it meaningful.
There are many websites which explain the format, one is:
http://www.technology.niagarac.on.ca/courses/comp630/WavFileFormat.html
and many more can be found with a search such as "wav riff format" or similar
as far as file IO in java goes, there is some good info in the java.sun.com tutorials

Cheers,
0
 

Expert Comment

by:kengoudsward
ID: 9893459
the java tutorials are at http://java.sun.com/docs/books/tutorial/
if you are not familiar with them I highly recommend them
0
 

Author Comment

by:royoz2003
ID: 9894854
Thanks Kengoudsward:
This  website is quite helpful ,  I can get enough things from it

Thanks

Roy
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses
Course of the Month15 days, 15 hours left to enroll

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question