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

Safe HaskellSafe-Infered

Sound.Sox.Write

Synopsis

Documentation

simpleSource

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))

extendedSource

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 

manyExtendedSource

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.