I am currently writing a small sound/dsp application in haskell, and I am having some problems deciding on the best way to do I/O from soundfiles. I am currently only implementing raw data input, and I am looking for code examples that demonstrate the best way(s) to implement reading in and processing large amounts of data. Any help is welcome Immanuel *************************************************************************** His endeavours to improve these conditions by innovations in the current methods of teaching are fully described in his writings; these made him unpopular with his brethren in the order and led to his removals to the monastery of Pomposa near Ferrara, Italy. Here the same lot seems to have befallen him. About Guido of Arezzo Immanuel Litzroth Software Development Engineer Enfocus Software Kleindokkaai 3-5 B-9000 Gent Belgium Voice: +32 9 269 23 90 Fax : +32 9 269 16 91 Email: Immanuell@enfocus.be web : www.enfocus.be ***************************************************************************
If you dont want to wait for libraries in development, the easiest way to do real binary IO is via hGetArray and hPutArray which let you get and put raw arrays of bytes (Word8). unfortunatly, there is no way to do binary IO in pure Haskell 98. http://haskell.cs.yale.edu/ghc/docs/latest/html/base/Data.Array.IO.html there is some work on a standard Binary library in progress as well. John On Mon, Jan 27, 2003 at 11:54:57AM +0100, Immanuel Litzroth wrote:
I am currently writing a small sound/dsp application in haskell, and I am having some problems deciding on the best way to do I/O from soundfiles. I am currently only implementing raw data input, and I am looking for code examples that demonstrate the best way(s) to implement reading in and processing large amounts of data. Any help is welcome Immanuel --
John Meacham - California Institute of Technology, Alum. - john@foo.net ---------------------------------------------------------------------------
participants (2)
-
Immanuel Litzroth -
John Meacham