Portability | As per dependencies. |
---|---|
Stability | unstable |
Maintainer | Stephen Tetley <stephen.tetley@gmail.com> |
Safe Haskell | None |
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.
- midi_header_columns :: ColumnSpecs
- tellMidiHeader :: MidiHeader -> Table ()
- byteList :: (Show a, Integral a) => a -> [Word8] -> WString
- safeString :: String -> String
- textType :: MidiTextType -> String
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