MathGroup Archive 2004

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

Search the Archive

Re: .WAV file headers

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52638] Re: .WAV file headers
  • From: "John Reed" <nospamjreed at alum.mit.edu>
  • Date: Sun, 5 Dec 2004 02:08:21 -0500 (EST)
  • References: <200412020721.CAA05830@smc.vnet.net> <cos0tm$dj8$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Thanks for the info - I should have 5.1 installed in a few days and I'll see 
if I can get BinaryRead to decode headers.

John Reed


"Yasvir Tesiram" <yat at omrf.ouhsc.edu> wrote in message 
news:cos0tm$dj8$1 at smc.vnet.net...
> Hi,
> Without going into any detail, in Versions 5.0.1 and less you can use
> Experimental`BinaryImport.
> So load the Experimental package:
>
> <<Experimental`
>
> and then use BinaryImport. You obviously know the header structure and
> so you can select how bytes are read in at a time and where from.
>
> In V5.1 this has changed and you can use BinaryRead to read in specific
> chunks.
>
> Cheers
> Yas
>
>
> On Dec 2, 2004, at 1:21 AM, John Reed wrote:
>
>> Is there a way to extract the information from wave file headers in
>> Mathematica?  The header is the first 11 words of the wave file and
>> consists
>> of 4 byte ASCII words and 4 byte integers encoded as ASCII strings.  I
>> need
>> the integers from header words 7 (samples/second), 9 (two 2 byte words,
>> bytes/sample and bits/sample) , and 11 (number of bytes in the file).
>>
>> John Reed
> 


  • Prev by Date: Re: Table Iterators
  • Next by Date: Re: New user - Integration domain question
  • Previous by thread: Re: .WAV file headers
  • Next by thread: Re: .WAV file headers