Save MIDI data to files.
The functions in this module allow T
s
to be written 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
- eventToStream :: Event -> ByteString
Documentation
toStream :: T -> ByteStringSource
Convert a MIDI file to a ByteString.
toOpenStream :: T -> ByteStringSource
Convert a MIDI file to a ByteString while replacing chunk lengths by (-1). This way writing the file is more lazy. I don't know whether this is useful for anything, thus simply don't use it.