Save MIDI data to files.
The functions in this module allow T
s
to be made into Standard MIDI files (*.mid
)
that can be read and played by music programs such as Cakewalk.
- toFile :: FilePath -> T -> IO ()
- toStream :: T -> ByteString
- toOpenStream :: T -> ByteString
Documentation
toStream :: T -> ByteStringSource
toOpenStream :: T -> ByteStringSource
MIDI files are first converted to a monadic string computation
using the function outMF
,
and then "executed" using execWriter
.