Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
ByteString builders for MIDI messages and their components. For information
on how to use the resulting Builder
s, 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.
- midiMessage :: MidiMessage -> Builder
- channelVoice :: ChannelVoice -> Builder
- channelStatus :: Word8 -> Channel -> Builder
- word14 :: Word16 -> Builder
- channelMode :: ChannelMode -> Builder
- systemCommon :: SystemCommon -> Builder
- systemRealTime :: SystemRealTime -> Builder
- systemExclusive :: SystemExclusive -> Builder
- vendorId :: VendorId -> Builder
- pitch :: Pitch -> Builder
- patch :: Patch -> Builder
- velocity :: Velocity -> Builder
- touch :: Touch -> Builder
- controller :: Controller -> Builder
Documentation
midiMessage :: MidiMessage -> Builder Source #
channelVoice :: ChannelVoice -> Builder Source #
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.
channelMode :: ChannelMode -> Builder Source #
systemCommon :: SystemCommon -> Builder Source #
controller :: Controller -> Builder Source #