haskell-synthesizer-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Synthesizer.Encoders.Wav

Synopsis

Documentation

samplingRate :: Num hz => hz Source #

The sampling rate of the WAV file

writeWaveFile Source #

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.

saveSignal Source #

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