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

PortabilityAs per dependencies.
Stabilityunstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>
Safe HaskellNone

ZMidi.Core.Pretty

Description

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.

Synopsis

Documentation

printMidi :: MidiFile -> IO ()Source

Print the MIDI file to std-out.

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

printMidiHeader :: MidiHeader -> [String]Source

Print the MIDI header.

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

printMidiTrack :: MidiTrack -> [String]Source

Print a track.

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