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

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

ZMidi.Core.Pretty.Internal

Description

Helper functions to pretty print MIDI as text.

The functionality is unstable and may change between releases however it is still exposed as it may be useful for writing a custom pretty printer.

Synopsis

Documentation

midi_header_columns :: ColumnSpecsSource

Column specs for Header - Header is printed as simple name-value pairs (2 columns).

tellMidiHeader :: MidiHeader -> Table ()Source

Log the MidiHeader in the Table monad (cf. Writer).

byteList :: (Show a, Integral a) => a -> [Word8] -> WStringSource

Print a short byte-list as Hex. Byte-lists longer than 10 chars are printed as ellipses.

safeString :: String -> StringSource

Make a string safe for stdout.

This is a temporary hack - characters above ASCII 163 cause an (invalid character) error when written to stdout on Windows (Cygwin).

textType :: MidiTextType -> StringSource

Decode Text Type