Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Boundary key value = Boundary key value Bool
- data BoundaryExt key value
- = BoundaryExt (Boundary key value)
- | AllOff (key -> Bool)
- maybeBnd :: C msg => msg -> Maybe (Boundary PitchChannel Velocity)
- maybeBndExt :: C msg => msg -> Maybe (BoundaryExt PitchChannel Velocity)
- class C x => Make x where
- fromBnd :: (Make key, VelocityField value, C msg) => Boundary key value -> msg
- bundle :: C msg => T m Relative Ticks -> T m Relative Ticks -> (PitchChannel, Velocity) -> Bundle m msg
- lift :: (C msg, C msg) => (Boundary PitchChannel Velocity -> Boundary PitchChannel Velocity) -> msg -> Maybe msg
- liftMaybe :: (C msg, C msg) => (Boundary PitchChannel Velocity -> Maybe (Boundary PitchChannel Velocity)) -> msg -> Maybe msg
- transpose :: Int -> Boundary PitchChannel v -> Maybe (Boundary PitchChannel v)
- reverse :: Boundary PitchChannel v -> Maybe (Boundary PitchChannel v)
- reduceVelocity :: Velocity -> Boundary pc Velocity -> Boundary pc Velocity
Documentation
data BoundaryExt key value Source #
BoundaryExt (Boundary key value) | |
AllOff (key -> Bool) | The predicate shall return True, if a certain key shall be released by the AllOff statement. E.g. the predicate might check for the appropriate channel. |
maybeBndExt :: C msg => msg -> Maybe (BoundaryExt PitchChannel Velocity) Source #
bundle :: C msg => T m Relative Ticks -> T m Relative Ticks -> (PitchChannel, Velocity) -> Bundle m msg Source #
lift :: (C msg, C msg) => (Boundary PitchChannel Velocity -> Boundary PitchChannel Velocity) -> msg -> Maybe msg Source #
liftMaybe :: (C msg, C msg) => (Boundary PitchChannel Velocity -> Maybe (Boundary PitchChannel Velocity)) -> msg -> Maybe msg Source #
transpose :: Int -> Boundary PitchChannel v -> Maybe (Boundary PitchChannel v) Source #
Pitch.C a note event by the given number of semitones. Non-note events are returned without modification. If by transposition a note leaves the range of representable MIDI notes, then we return Nothing.
reverse :: Boundary PitchChannel v -> Maybe (Boundary PitchChannel v) Source #
Swap order of keys. Non-note events are returned without modification. If by reversing a note leaves the range of representable MIDI notes, then we return Nothing.