Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- channel :: Int -> Channel
- pitch :: Int -> Pitch
- velocity :: Int -> Velocity
- controller :: Int -> Controller
- program :: Int -> Program
- normalVelocity :: Velocity
- splitFraction :: RealFrac a => a -> (Int, a)
- fraction :: RealFrac a => a -> a
- data PitchChannel = PitchChannel Pitch Channel
- data PitchChannelVelocity = PitchChannelVelocity PitchChannel Velocity
- class VelocityField x where
- data Future m a = Future {
- futureTime :: T m Relative Ticks
- futureData :: a
- type Bundle m a = [Future m a]
- singletonBundle :: a -> Bundle m a
- immediateBundle :: [a] -> Bundle m a
- now :: a -> Future m a
- mergeStable :: C time => T time body -> T time body -> T time body
- mergeEither :: C time => T time a -> T time b -> T time (Either a b)
Constructors
controller :: Int -> Controller Source #
Fractions
splitFraction :: RealFrac a => a -> (Int, a) Source #
properFraction is useless for negative numbers
Notes
data PitchChannel Source #
Instances
Eq PitchChannel Source # | |
Defined in Reactive.Banana.MIDI.Common (==) :: PitchChannel -> PitchChannel -> Bool # (/=) :: PitchChannel -> PitchChannel -> Bool # | |
Ord PitchChannel Source # | |
Defined in Reactive.Banana.MIDI.Common compare :: PitchChannel -> PitchChannel -> Ordering # (<) :: PitchChannel -> PitchChannel -> Bool # (<=) :: PitchChannel -> PitchChannel -> Bool # (>) :: PitchChannel -> PitchChannel -> Bool # (>=) :: PitchChannel -> PitchChannel -> Bool # max :: PitchChannel -> PitchChannel -> PitchChannel # min :: PitchChannel -> PitchChannel -> PitchChannel # | |
Show PitchChannel Source # | |
Defined in Reactive.Banana.MIDI.Common showsPrec :: Int -> PitchChannel -> ShowS # show :: PitchChannel -> String # showList :: [PitchChannel] -> ShowS # | |
C PitchChannel Source # | |
Defined in Reactive.Banana.MIDI.Pitch extract :: PitchChannel -> Pitch Source # increase :: Int -> PitchChannel -> Maybe PitchChannel Source # | |
Make PitchChannel Source # | |
Defined in Reactive.Banana.MIDI.Note |
data PitchChannelVelocity Source #
Instances
Eq PitchChannelVelocity Source # | |
Defined in Reactive.Banana.MIDI.Common (==) :: PitchChannelVelocity -> PitchChannelVelocity -> Bool # (/=) :: PitchChannelVelocity -> PitchChannelVelocity -> Bool # | |
Show PitchChannelVelocity Source # | |
Defined in Reactive.Banana.MIDI.Common showsPrec :: Int -> PitchChannelVelocity -> ShowS # show :: PitchChannelVelocity -> String # showList :: [PitchChannelVelocity] -> ShowS # | |
C PitchChannelVelocity Source # | |
Defined in Reactive.Banana.MIDI.Pitch |
class VelocityField x where Source #
getVelocity :: x -> Velocity Source #
Instances
VelocityField Velocity Source # | |
Defined in Reactive.Banana.MIDI.Common getVelocity :: Velocity -> Velocity Source # |
time stamped objects
The times are relative to the start time of the bundle and do not need to be ordered.
Future | |
|
singletonBundle :: a -> Bundle m a Source #
immediateBundle :: [a] -> Bundle m a Source #