synthesizer-0.0.3: Audio signal processing coded in HaskellSource codeContentsIndex
BinarySample
Synopsis
class C a where
toInt16 :: a -> [Int]
numChannels :: a -> Int
signalToBinary :: C v => [v] -> [Int]
signalToBinaryMono :: C a => [a] -> [Int]
signalToBinaryStereo :: C a => [(a, a)] -> [Int]
writeInt16Stream :: FilePath -> [Int] -> IO ()
readInt16Stream :: FilePath -> IO [Int]
writeLEInt16Stream :: FilePath -> [Int] -> IO ()
readLEInt16Stream :: FilePath -> IO [Int]
int16ToNum :: C a => Int -> a
putInt16Stream :: Handle -> [Int] -> IO ()
numToInt16Packed :: C a => a -> Int16
int16PackedToNum :: C a => Int16 -> a
floatToInt16Packed :: Float -> Int16
doubleToInt16Packed :: Double -> Int16
Documentation
class C a whereSource
Methods
toInt16 :: a -> [Int]Source
numChannels :: a -> IntSource
show/hide Instances
C Double
C Float
(C a, C b) => C ((,) a b)
signalToBinary :: C v => [v] -> [Int]Source
signalToBinaryMono :: C a => [a] -> [Int]Source
signalToBinaryStereo :: C a => [(a, a)] -> [Int]Source
writeInt16Stream :: FilePath -> [Int] -> IO ()Source
Uses endianess of the machine, like Sox does.
readInt16Stream :: FilePath -> IO [Int]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 -> [Int] -> IO ()Source
Write a little endian 16 bit integer stream via String data and writeFile.
readLEInt16Stream :: FilePath -> IO [Int]Source
The end of the list is undefined, if the file has odd length. It would be better if it throws an exception.
int16ToNum :: C a => Int -> aSource
putInt16Stream :: Handle -> [Int] -> IO ()Source
numToInt16Packed :: C a => a -> Int16Source
int16PackedToNum :: C a => Int16 -> aSource
floatToInt16Packed :: Float -> Int16Source
doubleToInt16Packed :: Double -> Int16Source
Produced by Haddock version 2.3.0