Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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 -> Signal u t 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 -> Signal Time t Voltage y yv -> IO ExitCode
- writeTimeVoltageMonoDoubleToInt16 :: FilePath -> Signal Time Double Voltage Double Double -> IO ExitCode
- writeTimeVoltageStereoDoubleToInt16 :: FilePath -> Signal Time Double 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 -> Signal u t v y yv -> IO ExitCode Source #
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 -> Signal Time t Voltage y yv -> IO ExitCode Source #
writeTimeVoltageMonoDoubleToInt16 :: FilePath -> Signal Time Double Voltage Double Double -> IO ExitCode Source #
writeTimeVoltageStereoDoubleToInt16 :: FilePath -> Signal Time Double Voltage Double (T Double) -> IO ExitCode Source #