Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
reset :: State (set key value) [Boundary key value] Source #
resetSome :: Ord key => (key -> Bool) -> State (set key value) [Boundary key value] Source #
It must hold reset == resetSome (const True)
.
size :: set key value -> Int Source #
toList :: set key value -> [(key, value)] Source #
index :: Ord key => Int -> set key value -> Maybe (key, value) Source #
change :: Ord key => Boundary key value -> State (set key value) [Boundary key value] Source #
Instances
C SerialLatch Source # | A key is hold until |
Defined in Reactive.Banana.MIDI.KeySet reset :: State (SerialLatch key value) [Boundary key value] Source # resetSome :: Ord key => (key -> Bool) -> State (SerialLatch key value) [Boundary key value] Source # size :: SerialLatch key value -> Int Source # toList :: SerialLatch key value -> [(key, value)] Source # index :: Ord key => Int -> SerialLatch key value -> Maybe (key, value) Source # change :: Ord key => Boundary key value -> State (SerialLatch key value) [Boundary key value] Source # | |
C GroupLatch Source # | All pressed keys are latched until a key is pressed after a pause
(i.e. all keys released).
For aborting the pattern you have to send
a |
Defined in Reactive.Banana.MIDI.KeySet reset :: State (GroupLatch key value) [Boundary key value] Source # resetSome :: Ord key => (key -> Bool) -> State (GroupLatch key value) [Boundary key value] Source # size :: GroupLatch key value -> Int Source # toList :: GroupLatch key value -> [(key, value)] Source # index :: Ord key => Int -> GroupLatch key value -> Maybe (key, value) Source # change :: Ord key => Boundary key value -> State (GroupLatch key value) [Boundary key value] Source # | |
C Latch Source # | |
Defined in Reactive.Banana.MIDI.KeySet reset :: State (Latch key value) [Boundary key value] Source # resetSome :: Ord key => (key -> Bool) -> State (Latch key value) [Boundary key value] Source # size :: Latch key value -> Int Source # toList :: Latch key value -> [(key, value)] Source # index :: Ord key => Int -> Latch key value -> Maybe (key, value) Source # change :: Ord key => Boundary key value -> State (Latch key value) [Boundary key value] Source # | |
C Pressed Source # | |
Defined in Reactive.Banana.MIDI.KeySet reset :: State (Pressed key value) [Boundary key value] Source # resetSome :: Ord key => (key -> Bool) -> State (Pressed key value) [Boundary key value] Source # size :: Pressed key value -> Int Source # toList :: Pressed key value -> [(key, value)] Source # index :: Ord key => Int -> Pressed key value -> Maybe (key, value) Source # change :: Ord key => Boundary key value -> State (Pressed key value) [Boundary key value] Source # |
changeExt :: (Ord key, C set) => BoundaryExt key value -> State (set key value) [Boundary key value] Source #
newtype Pressed key value Source #
Pressed | |
|
Instances
Map Pressed Source # | |
C Pressed Source # | |
Defined in Reactive.Banana.MIDI.KeySet reset :: State (Pressed key value) [Boundary key value] Source # resetSome :: Ord key => (key -> Bool) -> State (Pressed key value) [Boundary key value] Source # size :: Pressed key value -> Int Source # toList :: Pressed key value -> [(key, value)] Source # index :: Ord key => Int -> Pressed key value -> Maybe (key, value) Source # change :: Ord key => Boundary key value -> State (Pressed key value) [Boundary key value] Source # | |
(Show key, Show value) => Show (Pressed key value) Source # | |
newtype Latch key value Source #
Latch | |
|
Instances
Map Latch Source # | |
C Latch Source # | |
Defined in Reactive.Banana.MIDI.KeySet reset :: State (Latch key value) [Boundary key value] Source # resetSome :: Ord key => (key -> Bool) -> State (Latch key value) [Boundary key value] Source # size :: Latch key value -> Int Source # toList :: Latch key value -> [(key, value)] Source # index :: Ord key => Int -> Latch key value -> Maybe (key, value) Source # change :: Ord key => Boundary key value -> State (Latch key value) [Boundary key value] Source # | |
(Show key, Show value) => Show (Latch key value) Source # | |
latchChange :: Ord key => Boundary key value -> State (Latch key value) (Maybe (Boundary key value)) Source #
data GroupLatch key value Source #
GroupLatch | |
|
Instances
Map GroupLatch Source # | |
Defined in Reactive.Banana.MIDI.KeySet | |
C GroupLatch Source # | All pressed keys are latched until a key is pressed after a pause
(i.e. all keys released).
For aborting the pattern you have to send
a |
Defined in Reactive.Banana.MIDI.KeySet reset :: State (GroupLatch key value) [Boundary key value] Source # resetSome :: Ord key => (key -> Bool) -> State (GroupLatch key value) [Boundary key value] Source # size :: GroupLatch key value -> Int Source # toList :: GroupLatch key value -> [(key, value)] Source # index :: Ord key => Int -> GroupLatch key value -> Maybe (key, value) Source # change :: Ord key => Boundary key value -> State (GroupLatch key value) [Boundary key value] Source # | |
(Show key, Show value) => Show (GroupLatch key value) Source # | |
Defined in Reactive.Banana.MIDI.KeySet showsPrec :: Int -> GroupLatch key value -> ShowS # show :: GroupLatch key value -> String # showList :: [GroupLatch key value] -> ShowS # |
groupLatch :: GroupLatch key value Source #
groupLatchPressed :: T (GroupLatch key value) (Set key) Source #
groupLatchPlayed :: T (GroupLatch key value) (Map key value) Source #
data SerialLatch key value Source #
SerialLatch | |
|
Instances
C SerialLatch Source # | A key is hold until |
Defined in Reactive.Banana.MIDI.KeySet reset :: State (SerialLatch key value) [Boundary key value] Source # resetSome :: Ord key => (key -> Bool) -> State (SerialLatch key value) [Boundary key value] Source # size :: SerialLatch key value -> Int Source # toList :: SerialLatch key value -> [(key, value)] Source # index :: Ord key => Int -> SerialLatch key value -> Maybe (key, value) Source # change :: Ord key => Boundary key value -> State (SerialLatch key value) [Boundary key value] Source # | |
(Show key, Show value) => Show (SerialLatch key value) Source # | |
Defined in Reactive.Banana.MIDI.KeySet showsPrec :: Int -> SerialLatch key value -> ShowS # show :: SerialLatch key value -> String # showList :: [SerialLatch key value] -> ShowS # |
serialLatch :: Int -> SerialLatch key value Source #
serialLatchCursor :: T (SerialLatch key value) Int Source #
serialLatchPlayed :: T (SerialLatch key value) (Map Int (key, value)) Source #
releaseSomeKeys :: (Ord key, Map set) => (key -> Bool) -> State (set key value) [Boundary key value] Source #
releaseKey :: key -> value -> Boundary key value Source #