Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synthesizer.Encoders.Wav
Synopsis
- samplingRate :: Num hz => hz
- writeWaveFile :: FilePath -> Wave -> (Handle -> IO ()) -> IO ()
- saveSignal :: FilePath -> SynSound -> IO ()
- sampleToI16 :: Sample -> Int16
Documentation
samplingRate :: Num hz => hz Source #
The sampling rate of the WAV file
Arguments
:: FilePath | Where to save the file |
-> Wave | Parameters of the WAVE file |
-> (Handle -> IO ()) | Callback that will be used to write WAVE data |
-> IO () |
Write the given given the callback data. Overwrites the file if it already exists.
Arguments
:: FilePath | The file name or location. A .wav extension will be appended to the file |
-> SynSound | The structure representing your sound |
-> IO () |
Save the generated sound of the Synthesizer into a WAV file. Overwrites the file if it already exists.
sampleToI16 :: Sample -> Int16 Source #
Convert a sample to an Int16, as that is the biggest amplitude WAV supports