MathGroup Archive 2003

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Q .wav import


Peter W.

In the $Path or not using Mathematica 4.2 Windows 2000
 I did the following:

In[1]:=
Import["C:\\Documents and Settings\\hans\\My Documents\\raymond.wav", "WAV"]
Out[1]=
\[SkeletonIndicator]Sound\[SkeletonIndicator]

Note the double \\

It returned a Sound object
Sound[SampledSoundList[data, r]]

Which can be displayed using Show[%].

And played by double clicking on the graphics.

This is fast

Alternately you can load the add-on
In[2]:=
<< Miscellaneous`Audio`
In[3]:=
ReadSoundfile["C:\\Documents and Settings\\hans\My Documents\\raymond.wav",
PrintHeader->True]

Then use ListPlay

In[4]:=
ListPlay[%, SampleRate->22050, PlayRange->{-2^15,2^15}]

This is slow.

In the ReadSoundFile you can see the data.

With Import use FullForm on the Sound object to see the Format. Then grab
the List (data).

Hans





"mandarino" <pams at wwwsrv1.cepus.net> wrote in message
news:botck5$chp$1 at smc.vnet.net...
> With my camera (Ricoh rdc-7) I made a sound recording in the .wav format,
> I have not been able to import this sound into Mathematica.
>
> I use:
> Import["pulsonex6.WAV"]
>
> And I get a "$Failed" result.
>
> Any ideas?
> The sound playes OK e.g. in the win XP mediaplayer.
> And, at least I put the sound file in the Mathematica $Path
>
>
>
> Best regards
> Peter W
>
>


  • Prev by Date: Re: Real sum gives complex result -> Bug in Mathematica?
  • Next by Date: Re: Simple Sum problem
  • Previous by thread: Q .wav import
  • Next by thread: Automatic comment coloring