lambdasound-1.2.0: A libary for generating low-level sounds with high-level combinators
Safe HaskellSafe-Inferred
LanguageGHC2021

LambdaSound.SaveAndLoad.RawSamples

Synopsis

Documentation

saveWav :: FilePath -> Hz -> Vector S Pulse -> IO () Source #

Save sound samples to a wave file with the given sampling frequency

saveRaw :: FilePath -> Vector S Pulse -> IO () Source #

Save the sound samples as raw floats

saveRawCompressed :: FilePath -> Vector S Pulse -> IO () Source #

Save the sound samples as raw floats compressed with gzip

loadWav :: FilePath -> IO (Hz, NonEmpty (Vector S Pulse)) Source #

Load a wave file to get the sampling frequencies and the sound samples for the channels.