reactive-midyim-0.4.1.1: Process MIDI events via reactive-banana

Safe HaskellNone
LanguageHaskell98

Reactive.Banana.MIDI.Utility

Documentation

partition :: (a -> Bool) -> Event a -> (Event a, Event a) Source #

mapMaybe :: (a -> Maybe b) -> Event a -> Event b Source #

partitionMaybe :: (a -> Maybe b) -> Event a -> (Event b, Event a) Source #

bypass :: (a -> Maybe b) -> (Event a -> Event c) -> (Event b -> Event c) -> Event a -> Event c Source #

bypassM :: Monad m => (a -> Maybe b) -> (Event a -> m (Event c)) -> (Event b -> m (Event c)) -> Event a -> m (Event c) Source #

traverse :: MonadMoment m => s -> (a -> State s b) -> Event a -> m (Event b, Behavior s) Source #

sequence :: MonadMoment m => s -> Event (State s a) -> m (Event a, Behavior s) Source #

mapAdjacent :: MonadMoment m => (a -> a -> b) -> a -> Event a -> m (Event b) Source #