Solved

how to plot .wav file 2

Posted on 2003-11-29
6
609 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
  • 2
6 Comments
 

Accepted Solution

by:
kengoudsward earned 30 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
backtracking recursion  code 19 58
object oriented programming comparison 5 71
spring jars download 1 27
How do I remove an object from a 3 25
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

770 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