midi-0.0.6: Handling of MIDI messages and files

Sound.MIDI.File.Save

Description

Save MIDI data to files.

The functions in this module allow Ts to be made into Standard MIDI files (*.mid) that can be read and played by music programs such as Cakewalk.

Synopsis

Documentation

toFile :: FilePath -> T -> IO ()Source

The function toFile is the main function for writing T values to an actual file; its first argument is the filename:

toOpenStream :: T -> ByteStringSource

MIDI files are first converted to a monadic string computation using the function outMF, and then "executed" using execWriter.