1. Wave-File-Headers...
- Posted by PQ <quistnet at HOTMAIL.COM> Jul 16, 2000
- 404 views
------=_NextPart_000_000B_01BFEF2A.A3EE94D0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hy, I ran in to a BASIC program, that translates e.g. sinus-waves to a wave-file, and translated it into Euphoria. It works perfectly, the created wave-files can be played with Windows = software. I used a standard 8Bit-Mono-22050 Header --> WavHead22050 but the 8Bit-Mono-44100 Header is a little different --> WavHead44100 I have no experience with wave-file-formats so completely trusted the = headers, I only know where I put the length of the file. Can anyone explain the difference between these headers and also what all those numbers explain. --------------------------------------------- WavHead22050=3D "RIFF"& {0,0,0,0}& -- +36 "WAVE"&"fmt "& -- 23 65537 22050 22050 65544 "data" --------------------------------------------- WavHead44100=3D "RIFF"& {0,0,0,0}& -- +50 "WAVE"&"fmt "& -- 25 65537 44100 44100 65544 {0,0}& "fact"&{4,0,0,0}&{68,172,0,0}& -- 4 44100 "data" --------------------------------------------- Thanks, PQ ------=_NextPart_000_000B_01BFEF2A.A3EE94D0 charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2><BR>Hy,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>I ran in to a BASIC program, that = translates e.g.=20 sinus-waves<BR>to a wave-file, and translated it into Euphoria.<BR>It = works=20 perfectly, the created wave-files can be played with Windows = software.<BR>I used=20 a standard 8Bit-Mono-22050 Header --> WavHead22050<BR>but the = 8Bit-Mono-44100=20 Header is a little different --> WavHead44100</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>I have no experience with = wave-file-formats so=20 completely trusted the headers,<BR>I only know where I put the length of = the=20 file.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Can anyone explain the difference = between these=20 headers and also what<BR>all those numbers explain.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial=20 +36<BR>"WAVE"&"fmt=20 ,0,8,0}&<BR>--=20 23 65537 =20 22050 =20 22050 =20 +50<BR>"WAVE"&"fmt=20 {1,0,8,0}&<BR>--=20 25 65537 =20 bsp; =20 DIV> <DIV> </DIV> <DIV><FONT face=3DArial = ------=_NextPart_000_000B_01BFEF2A.A3EE94D0--
2. Re: Wave-File-Headers...
- Posted by David Cuny <dcuny at LANSET.COM> Jul 16, 2000
- 388 views
Patrick wrote: > Can anyone explain the difference between > these headers and also what all those numbers > explain. You can take a look at http://www.wotsit.org for the layout of just about any file format you need. -- David Cuny
3. Re: Wave-File-Headers...
- Posted by PQ <quistnet at HOTMAIL.COM> Jul 16, 2000
- 387 views
----- Original Message ----- From: David Cuny <dcuny at LANSET.COM> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Sunday, July 16, 2000 3:27 PM Subject: Re: Wave-File-Headers... > Patrick wrote: > > > Can anyone explain the difference between > > these headers and also what all those numbers > > explain. > > You can take a look at http://www.wotsit.org for the layout of just about > any file format you need. > > -- David Cuny I know, but the headers I gave are not equal to those examples and structures. Bye, PQ
4. Re: Wave-File-Headers...
- Posted by Lewis Townsend <keroltarr at HOTMAIL.COM> Jul 18, 2000
- 396 views
Hello PQ, >--------------------------------------------- >WavHead22050= >"RIFF"& >{0,0,0,0}& -- +36 >"WAVE"&"fmt "& >-- 23 65537 22050 22050 65544 >"data" >--------------------------------------------- >WavHead44100= >"RIFF"& >{0,0,0,0}& -- +50 >"WAVE"&"fmt "& >-- 25 65537 44100 44100 65544 >{0,0}& >"fact"&{4,0,0,0}&{68,172,0,0}& >-- 4 44100 >"data" 22050 44100 I think these are just different sample rates for the wave file. If you use the wrong one when playing it will sound really fast and high pitched or slow and low pitched. That's all I know about it. later, Lewis Townsend ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com