Safe Haskell | None |
---|---|
Language | Haskell2010 |
- render :: (Storable int, C int, C int, Bounded int, C a, C v) => Put int -> FilePath -> a -> (a -> [v]) -> IO ExitCode
- renderToInt16 :: (C a, C v) => FilePath -> a -> (a -> [v]) -> IO ExitCode
- renderMonoToInt16 :: C a => FilePath -> a -> (a -> [a]) -> IO ExitCode
- renderStereoToInt16 :: C a => FilePath -> a -> (a -> [(a, a)]) -> IO ExitCode
- write :: (Storable int, C int, C int, Bounded int, C a, C v) => Put int -> FilePath -> a -> [v] -> IO ExitCode
- writeToInt16 :: (C a, C v) => FilePath -> a -> [v] -> IO ExitCode
- writeMonoToInt16 :: C a => FilePath -> a -> [a] -> IO ExitCode
- writeStereoToInt16 :: C a => FilePath -> a -> [(a, a)] -> IO ExitCode
- writeRaw :: (C a, C v, Storable v) => T -> FilePath -> a -> [v] -> IO ExitCode
- writeRawCompressed :: (C a, C v, Storable v) => T -> FilePath -> a -> [v] -> IO ExitCode
- rawToAIFF :: C a => FilePath -> T -> a -> Int -> IO ExitCode
- compress :: FilePath -> IO ExitCode
- readAIFFMono :: C a => FilePath -> IO [a]
- readMonoFromInt16 :: C a => FilePath -> IO [a]
- getInt16List :: Get [Int16]
Documentation
render :: (Storable int, C int, C int, Bounded int, C a, C v) => Put int -> FilePath -> a -> (a -> [v]) -> IO ExitCode Source #
See write
.
write :: (Storable int, C int, C int, Bounded int, C a, C v) => Put int -> FilePath -> a -> [v] -> IO ExitCode Source #
The output format is determined by SoX by the file name extension.
The sample precision is determined by the provided Put
function.
Example:
import qualified Synthesizer.Plain.Builder as Builder write (Builder.put :: Builder.Put Int16) "test.aiff" 44100 sound
writeRawCompressed :: (C a, C v, Storable v) => T -> FilePath -> a -> [v] -> IO ExitCode Source #
You hardly need this routine
since you can use a filename with .mp3
or .ogg
extension for writeRaw
and SoX will do the corresponding compression for you.
rawToAIFF :: C a => FilePath -> T -> a -> Int -> IO ExitCode Source #
Deprecated: If you want to generate AIFF, then just write to files with .aiff filename extension. If you want to convert files to AIFF, use Sound.Sox.Convert.
readMonoFromInt16 :: C a => FilePath -> IO [a] Source #
I suspect we cannot handle file closing properly.
getInt16List :: Get [Int16] Source #
Deprecated: This function will no longer be exported