midi-simple-0.1.0.0: A simple and fast library for working with MIDI messages

Safe HaskellSafe
LanguageHaskell2010

Sound.MIDI.Serialize

Description

ByteString builders for MIDI messages and their components. For information on how to use the resulting Builders, see Data.ByteString.Builder. The type signatures in this module should serve as sufficient documentation. For most use cases the encodeMidi function in Sound.MIDI should suffice.

Synopsis

Documentation

word14 :: Word16 -> Builder Source #

Build a 14 bit word as it is used in the MIDI specifications, i.e. it is built as two 8 bit words with the 7th bit not set respectively.