Safe Haskell | None |
---|

Channel mode messages

- data T
- = AllSoundOff
- | ResetAllControllers
- | LocalControl Bool
- | AllNotesOff
- | OmniMode Bool
- | MonoMode Int
- | PolyMode

- get :: C parser => Int -> Fallible parser T
- put :: C writer => T -> writer
- fromControllerValue :: (Show a, Integral a) => (a, a) -> (Maybe UserMessage, T)
- toControllerValue :: Integral a => T -> (a, a)

# Documentation

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