synthesizer-dimensional-0.7.0.2: Audio signal processing with static physical dimensions

Safe HaskellNone

Synthesizer.Dimensional.RateAmplitude.File

Synopsis

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 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 -> Signal Time t Voltage y yv -> IO ExitCodeSource