midi-0.2.2.6: Handling of MIDI messages and files
Safe HaskellSafe-Inferred
LanguageHaskell2010

Sound.MIDI.Message

Description

MIDI messages for real-time communication with MIDI devices. This does not cover MIDI file events. For these refer to Sound.MIDI.File.Event.

Documentation

data T Source #

Constructors

Channel T 
System T 

Instances

Instances details
C T Source # 
Instance details

Defined in Sound.MIDI.Message.Class.Check

Methods

note :: Channel -> T -> Maybe (Velocity, Pitch, Bool) Source #

program :: Channel -> T -> Maybe Program Source #

anyController :: Channel -> T -> Maybe (Controller, Int) Source #

pitchBend :: Channel -> T -> Maybe Int Source #

channelPressure :: Channel -> T -> Maybe Int Source #

mode :: Channel -> T -> Maybe T Source #

C T Source # 
Instance details

Defined in Sound.MIDI.Message.Class.Construct

C T Source # 
Instance details

Defined in Sound.MIDI.Message.Class.Query

Methods

note :: T -> Maybe (Channel, (Velocity, Pitch, Bool)) Source #

program :: T -> Maybe (Channel, Program) Source #

anyController :: T -> Maybe (Channel, (Controller, Int)) Source #

pitchBend :: T -> Maybe (Channel, Int) Source #

channelPressure :: T -> Maybe (Channel, Int) Source #

mode :: T -> Maybe (Channel, T) Source #

get :: forall (parser :: Type -> Type). C parser => Fragile parser T Source #

getWithStatus :: forall (parser :: Type -> Type). C parser => Fragile (T parser) T Source #

getIncompleteWithStatus :: forall (parser :: Type -> Type). C parser => Partial (Fragile (T parser)) T Source #

put :: C writer => T -> writer Source #

putWithStatus :: (Compression compress, C writer) => T -> T compress writer Source #

maybeFromByteString :: ByteString -> T T Source #

toByteString :: T -> ByteString Source #