sox-0.2.2.7: Play, write, read, convert audio signals using Sox

Safe HaskellSafe
LanguageHaskell98

Sound.Sox.Write

Synopsis

Documentation

simple Source #

Arguments

:: C y 
=> (Handle -> sig y -> IO ())

Writer routine - e.g. put or hPut

-> T 
-> FilePath 
-> Int

sample rate

-> sig y 
-> IO ExitCode 

Sox determines the output format from the filename extension or from format. Make sure that you provide one of them.

:load Sound.Sox.Write Sound.Sox.Signal.List

simple Sound.Sox.Signal.List.put Option.none "test.aiff" 11025 (take 100 $ iterate (1000+) (0::Data.Int.Int16))

extended Source #

Arguments

:: C y 
=> (Handle -> sig y -> IO ())

Writer routine - e.g. put or hPut

-> T

source options, usually none

-> T

target options

-> FilePath 
-> Int

sample rate

-> sig y 
-> IO ExitCode 

manyExtended Source #

Arguments

:: (C y, Traversable f) 
=> (f Handle -> sig y -> IO ())

Writer routine - e.g. put or hPut

-> T

source options, usually none

-> T

target options

-> f FilePath 
-> Int

sample rate

-> sig y 
-> IO (f ExitCode) 

The traversable functor f might be Maybe or '[]'. It allows you to write to many files simultaneously and returns the exit codes of all writing processes.