Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Loading MIDI Files
This module loads and parses a MIDI File.
It can convert it into a T
data type object or
simply print out the contents of the file.
Synopsis
- fromFile :: FilePath -> IO T
- fromByteList :: ByteList -> T
- maybeFromByteList :: ByteList -> T T
- maybeFromByteString :: ByteString -> T T
- showFile :: FilePath -> IO ()
Documentation
fromFile :: FilePath -> IO T Source #
The main load function.
Warnings are written to standard error output
and an error is signaled by a user exception.
This function will not be appropriate in GUI applications.
For these, use maybeFromByteString
instead.
fromByteList :: ByteList -> T Source #
This function ignores warnings, turns exceptions into errors, and return partial results without warnings. Use this only in testing but never in production code!
maybeFromByteString :: ByteString -> T T Source #