synthesizer-0.2.0.1: Audio signal processing coded in HaskellSource codeContentsIndex
Synthesizer.Dimensional.RateAmplitude.File
Synopsis
write :: (Bounded int, C int, Storable int, C int, C yv, C u, C t, C v, C y yv, C y) => T (Recip u) t -> T v y -> (int -> Builder int) -> FilePath -> T u t (S v y) yv -> IO ExitCode
writeTimeVoltage :: (Bounded int, C int, Storable int, C int, C yv, C t, C y yv, C y) => (int -> Builder int) -> FilePath -> T Time t (S Voltage y) yv -> IO ExitCode
writeTimeVoltageMonoDoubleToInt16 :: FilePath -> T Time Double (S Voltage Double) Double -> IO ExitCode
writeTimeVoltageStereoDoubleToInt16 :: FilePath -> T Time Double (S Voltage Double) (T Double) -> IO ExitCode
renderTimeVoltageMonoDoubleToInt16 :: T Frequency Double -> FilePath -> (forall s. T s Time Double (R s Voltage Double Double)) -> IO ExitCode
renderTimeVoltageStereoDoubleToInt16 :: T Frequency Double -> FilePath -> (forall s. T s Time Double (R s Voltage Double (T Double))) -> IO ExitCode
Documentation
write :: (Bounded int, C int, Storable int, C int, C yv, C u, C t, C v, C y yv, C y) => T (Recip u) t -> T v y -> (int -> Builder int) -> FilePath -> T u t (S v y) yv -> IO ExitCodeSource

The output format is determined by SoX by the file name extension. The sample precision is determined by the provided Builder function.

Example:

 import qualified Data.StorableVector.Lazy.Builder as Builder

 write (DN.frequency one) (DN.voltage one) (\i -> Builder.put (i::Int16)) "test.aiff" sound
writeTimeVoltage :: (Bounded int, C int, Storable int, C int, C yv, C t, C y yv, C y) => (int -> Builder int) -> FilePath -> T Time t (S Voltage y) yv -> IO ExitCodeSource
writeTimeVoltageMonoDoubleToInt16 :: FilePath -> T Time Double (S Voltage Double) Double -> IO ExitCodeSource
writeTimeVoltageStereoDoubleToInt16 :: FilePath -> T Time Double (S Voltage Double) (T Double) -> IO ExitCodeSource
renderTimeVoltageMonoDoubleToInt16 :: T Frequency Double -> FilePath -> (forall s. T s Time Double (R s Voltage Double Double)) -> IO ExitCodeSource
renderTimeVoltageStereoDoubleToInt16 :: T Frequency Double -> FilePath -> (forall s. T s Time Double (R s Voltage Double (T Double))) -> IO ExitCodeSource
Produced by Haddock version 2.4.2