synthesizer-0.2.0.1: Audio signal processing coded in HaskellSource codeContentsIndex
Synthesizer.Plain.IO
Description
This is old code, handling Int16 using two characters.
Synopsis
writeInt16Stream :: FilePath -> [Int16] -> IO ()
readInt16StreamStrict :: FilePath -> IO [Int16]
writeLEInt16Stream :: FilePath -> [Int16] -> IO ()
readLEInt16Stream :: FilePath -> IO [Int16]
putInt16Stream :: Handle -> [Int16] -> IO ()
putInt16StreamChunky :: Handle -> [Int16] -> IO ()
intToTwoLEChars :: Int -> [Char]
twoLECharsToInt :: Char -> Char -> Int
Documentation
writeInt16Stream :: FilePath -> [Int16] -> IO ()Source
Uses endianess of the machine, like Sox does.
readInt16StreamStrict :: FilePath -> IO [Int16]Source
The end of the list is undefined, if the file has odd length. It would be better if it throws an exception.
writeLEInt16Stream :: FilePath -> [Int16] -> IO ()Source
Write a little endian 16 bit integer stream via String data and writeFile.
readLEInt16Stream :: FilePath -> IO [Int16]Source
The end of the list is undefined, if the file has odd length. It would be better if it throws an exception.
putInt16Stream :: Handle -> [Int16] -> IO ()Source
putInt16StreamChunky :: Handle -> [Int16] -> IO ()Source
intToTwoLEChars :: Int -> [Char]Source
twoLECharsToInt :: Char -> Char -> IntSource
Produced by Haddock version 2.4.2