Solved

how to plot .wav file 2

Posted on 2003-11-29
6
603 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now