Solved

how to plot .wav file 2

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
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.
Suggested Courses

739 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