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

Sound.Sox.Write

Synopsis

Documentation

simpleSource

Arguments

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

Writer routine - e.g. Sound.Sox.Signal.List.put or Data.StorableVector.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. Sound.Sox.Signal.List.put or Data.StorableVector.hPut

-> T

source options, usually none

-> T

target options

-> FilePath 
-> Int

sample rate

-> sig y 
-> IO ExitCode