Copyright | (c) Stephen Tetley 2010-2013 |
---|---|
License | BSD3 |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Stability | unstable |
Portability | As per dependencies. |
Safe Haskell | None |
Language | Haskell98 |
Pretty print the MIDI representation.
The output format is lossy - the content of Meta and SysEx events may be abbreviated. This makes the format unsuitable as a text representation of MIDI, however it can enable quick disassembly of MIDI files in order to see the note events.
Documentation
putMidi :: MidiFile -> IO () Source #
Print the MIDI file to stdout.
One event is printed per line, so the output may be large.
printMidi :: MidiFile -> [String] Source #
Print the MIDI file to a list of Strings.
Results are returned as a list of String to avoid extraneous concatenation.
printMidiHeader :: MidiFile -> [String] Source #
Print the MIDI header.
Results are returned as a list of String to avoid extraneous concatenation.