zmidi-core-0.8.0: Read and write MIDI files.

Copyright(c) Stephen Tetley 2013-2015
LicenseBSD3
MaintainerStephen Tetley <stephen.tetley@gmail.com>
Stabilityunstable
PortabilityAs per dependencies.
Safe HaskellNone
LanguageHaskell98

ZMidi.Core.Pretty.Ascii

Description

Pretty print MIDI in format based on the ASCII format in the book Beyond MIDI.

Synopsis

Documentation

putAscii :: MidiFile -> IO () Source

Print the MIDI file to stdout (ASCII format based on output in the book Beyond MIDI).

One event is printed per line, so the output may be large.

printAscii :: MidiFile -> [String] Source

Print the MIDI file to a list of Strings (ASCII format based on output in the book Beyond MIDI).

Results are returned as a list of String to avoid extraneous concatenation.