hmt-0.16: Haskell Music Theory

Safe HaskellSafe
LanguageHaskell98

Music.Theory.Byte

Description

Byte functions.

Synopsis

Documentation

byte_hex_pp :: (Integral i, Show i) => i -> Maybe String Source #

Given n in (0,255) make two character hex string.

mapMaybe byte_hex_pp [0x0F,0xF0,0xF0F] == ["0F","F0"]

byte_hex_pp_err :: (Integral i, Show i) => i -> String Source #

Erroring variant.

byte_seq_hex_pp :: (Integral i, Show i) => [i] -> String Source #

unwords of map of byte_hex_pp_err.

byte_seq_hex_pp [0x0F,0xF0] == "0F F0"

read_hex_byte :: (Eq t, Num t) => String -> t Source #

Read two character hexadecimal string.

read_hex_byte_seq :: (Eq t, Num t) => String -> [t] Source #

load_byte_seq :: Integral i => FilePath -> IO [i] Source #

Load binary U8 sequence from file.

store_byte_seq :: Integral i => FilePath -> [i] -> IO () Source #

load_hex_byte_seq :: Integral i => FilePath -> IO [i] Source #

Load hexadecimal text U8 sequence from file.

store_hex_byte_seq :: (Integral i, Show i) => FilePath -> [i] -> IO () Source #

Store U8 sequence as hexadecimal text, 16 words per line.