Safe Haskell | None |
---|
- init :: IO Handle
- exit :: Handle -> IO ()
- with :: ReaderT Handle IO a -> IO a
- setTimeStamping :: ReaderT Handle IO ()
- startQueue :: ReaderT Handle IO ()
- connect :: [String] -> [String] -> ReaderT Handle IO ()
- connectFrom :: T -> ReaderT Handle IO T
- connectTo :: T -> ReaderT Handle IO T
- timidity :: String
- haskellSynth :: String
- inputs :: [String]
- outputs :: [String]
- connectTimidity :: ReaderT Handle IO ()
- connectLLVM :: ReaderT Handle IO ()
- connectAny :: ReaderT Handle IO ()
- parseAddresses :: [String] -> ReaderT Handle IO T
- sendNote :: Channel -> RelativeTicks -> Velocity -> Pitch -> ReaderT Handle IO ()
- sendKey :: Channel -> Bool -> Velocity -> Pitch -> ReaderT Handle IO ()
- sendController :: Channel -> Controller -> Int -> ReaderT Handle IO ()
- sendProgram :: Channel -> Program -> ReaderT Handle IO ()
- sendMode :: Channel -> T -> ReaderT Handle IO ()
- class Reactor reactor where
- reactorTime :: T reactor t a -> T Reactor t a
- class Events ev where
- flattenEvents :: ev -> [Future Data]
- makeEvent :: Handle -> AbsoluteTicks -> Data -> T
- makeEcho :: Handle -> AbsoluteTicks -> T
- outputEvent :: AbsoluteTicks -> Data -> ReaderT Handle IO ()
- simpleNote :: Channel -> Pitch -> Velocity -> Note
- type Future = Future Reactor
- type Bundle a = Bundle Reactor a
- type EventBundle = Bundle T
- type EventDataBundle = Bundle Data
- setChannel :: Channel -> Data -> Data
- delayAdd :: Velocity -> RelativeTicks -> Data -> EventDataBundle
- controllerMatch :: Channel -> Controller -> Ctrl -> Bool
- checkChannel :: (Channel -> Bool) -> Data -> Bool
- checkPitch :: (Pitch -> Bool) -> Data -> Bool
- checkController :: (Controller -> Bool) -> Data -> Bool
- checkMode :: (T -> Bool) -> Data -> Bool
- checkProgram :: (Program -> Bool) -> Data -> Bool
- isAllNotesOff :: Data -> Bool
helper functions
connect :: [String] -> [String] -> ReaderT Handle IO ()Source
Connect ourselve to an input client and an output client. The function expects a list of alternative clients that are checked successively.
send single events
sendController :: Channel -> Controller -> Int -> ReaderT Handle IO ()Source
events
This class unifies several ways of handling multiple events at once.
flattenEvents :: ev -> [Future Data]Source
makeEcho :: Handle -> AbsoluteTicks -> TSource
outputEvent :: AbsoluteTicks -> Data -> ReaderT Handle IO ()Source
type EventBundle = Bundle TSource
type EventDataBundle = Bundle DataSource
effects
setChannel :: Channel -> Data -> DataSource
delayAdd :: Velocity -> RelativeTicks -> Data -> EventDataBundleSource
predicates - may be moved to midi-alsa package
controllerMatch :: Channel -> Controller -> Ctrl -> BoolSource
checkController :: (Controller -> Bool) -> Data -> BoolSource
isAllNotesOff :: Data -> BoolSource