Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Sound.MIDI.Message.Channel.Mode
Description
Channel mode messages
Synopsis
- data T
- get :: C parser => Int -> Fragile parser T
- put :: C writer => T -> writer
- fromControllerValue :: (Show a, Integral a) => (a, a) -> (Maybe UserMessage, T)
- toControllerValue :: Integral a => T -> (a, a)
Documentation
Constructors
AllSoundOff | |
ResetAllControllers | |
LocalControl Bool | |
AllNotesOff | |
OmniMode Bool | |
MonoMode Int | |
PolyMode |
fromControllerValue :: (Show a, Integral a) => (a, a) -> (Maybe UserMessage, T) Source #
This function is also used in alsa-midi,
we could give it the result type Parser.PossiblyIncomplete T
otherwise.
toControllerValue :: Integral a => T -> (a, a) Source #