midi-0.2.1.3: Handling of MIDI messages and files

Safe HaskellSafe-Inferred

Sound.MIDI.File.Load

Description

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

Documentation

fromFile :: FilePath -> IO TSource

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 -> TSource

This function ignores warnings, turns exceptions into errors, and return partial results without warnings. Use this only in testing but never in production code!

showFile :: FilePath -> IO ()Source

Deprecated: only use this for debugging

Functions to show the decoded contents of a MIDI file in an easy-to-read format. This is for debugging purposes and should not be used in production code.