Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Tempo = Tempo {}
- data State = State {}
- setCps :: MVar Tempo -> Time -> IO Tempo
- defaultTempo :: Time -> Tempo
- getClockHostname :: IO String
- getClockPort :: IO Int
- timeToCycles :: Tempo -> Time -> Rational
- getHz :: IO Double
- getTickLength :: IO Time
- clocked :: (MVar Tempo -> State -> IO ()) -> IO (MVar Tempo, [ThreadId])
- clientListen :: Time -> IO (MVar Tempo, ThreadId)
- listenTempo :: UDP -> MVar Tempo -> IO ()
- serverListen :: IO ()
Documentation
defaultTempo :: Time -> Tempo Source #
getClockPort :: IO Int Source #
timeToCycles :: Tempo -> Time -> Rational Source #
Returns the given time in terms of cycles relative to metrical grid of a given Tempo
getTickLength :: IO Time Source #
serverListen :: IO () Source #