DSPRelated.com
Forums

plotting a wave file

Started by Somia April 28, 2005
hi

Is there some software or tool that takes a wave file (.wav in windows)
as input and plots the waveform on some graph.. (like matlab)

sorry if i sound less technical... infact dsp is not my field. its just
that i've confronted with such problem

Thanks in advance
Somia

Check out the function wavread in matlab.

Rune

Or just skip the first 44 bytes and treat the reset of the file as raw 
data...

Rune Allnor wrote:

> Check out the function wavread in matlab. > > Rune >
-- Please change no_spam to a.lodwig when replying via email!
Andre <no_spam@fischer-zoth.de> writes:

> Or just skip the first 44 bytes and treat the reset of the file as raw > data...
But that only works if there aren't other chunks in the file (lyrics, credits, etc.) - one of those assumptions that may be OK for awhile but will bite you eventually. -- % Randy Yates % "Ticket to the moon, flight leaves here today %% Fuquay-Varina, NC % from Satellite 2" %%% 919-577-9882 % 'Ticket To The Moon' %%%% <yates@ieee.org> % *Time*, Electric Light Orchestra http://home.earthlink.net/~yatescr
"Somia" <somia_iqbal@yahoo.com> writes:

> hi > > Is there some software or tool that takes a wave file (.wav in windows) > as input and plots the waveform on some graph.. (like matlab)
You could also use the open-source Windows application "Audacity" - it plots the waveform and does frequency analysis. So does the for-pay application "Audition" by Adobe. If you've got Matlab, it's the most capable and powerful tool by far, though. -- % Randy Yates % "She's sweet on Wagner-I think she'd die for Beethoven. %% Fuquay-Varina, NC % She love the way Puccini lays down a tune, and %%% 919-577-9882 % Verdi's always creepin' from her room." %%%% <yates@ieee.org> % "Rockaria", *A New World Record*, ELO http://home.earthlink.net/~yatescr
Or, if the use of tcl and/or Python is viable for you, there is the "snack" 
toolkit, which does just about everything:

http://www.speech.kth.se/snack/

Richard Dobson

Randy Yates wrote:

> "Somia" <somia_iqbal@yahoo.com> writes: > > >>hi >> >>Is there some software or tool that takes a wave file (.wav in windows) >>as input and plots the waveform on some graph.. (like matlab) > > > You could also use the open-source Windows application "Audacity" - it > plots the waveform and does frequency analysis. So does the for-pay > application "Audition" by Adobe. > > If you've got Matlab, it's the most capable and powerful tool by far, > though.
Andre wrote:
> Or just skip the first 44 bytes and treat the reset of the file as raw > data...
Watch out for interleaved stereo if you do that. Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
"Somia" <somia_iqbal@yahoo.com> wrote in message
news:1114676681.660138.193610@f14g2000cwb.googlegroups.com...
> hi > > Is there some software or tool that takes a wave file (.wav in windows) > as input and plots the waveform on some graph.. (like matlab) > > sorry if i sound less technical... infact dsp is not my field. its just > that i've confronted with such problem > > Thanks in advance > Somia >
As Randy said, Adobe Audition does the job. Do a Google search for CoolEdit, which is what Audition was before being bought by Adobe. There are still free versions kicking about (of CoolEdit).
Hi Jerry,

"Watch out for interleaved stereo if you do that. "

Um, what do you mean by that? How and why would that happen? Could you
please elaborate? I'm not getting it! :-( 

thanks,
Kunal

Kunal wrote:
> Hi Jerry, > > "Watch out for interleaved stereo if you do that. " > > Um, what do you mean by that? How and why would that happen? Could
you
> please elaborate? I'm not getting it! :-(
Jerry probably means that in a WAV file that contains a stereo recording, every other sample is from the left channel and every other are from the right channel. I think I have seen somewhere that new versions of the WAV format can handle more channels than that. I believe a game console/ home entertainment center could contain at least least five speakers (L/R front, L/R rear, subwoofer), so don't take for granted that there is only one channel in the WAV file. Rune