haskore-realtime-0.2: Routines for realtime playback of Haskore songs

Safe HaskellSafe-Inferred

Haskore.RealTime.Timer

Documentation

data T m Source

Constructors

Cons 

Fields

getClockTime :: m ClockTime
 
waitInt :: Int -> m ()
 
resolution :: Integer
 

lift :: (MonadTrans t, Monad m) => T m -> T (t m)Source

liftIO :: MonadIO io => T IO -> T ioSource

getTime :: Monad m => T m -> m IntegerSource

clockTimeToWaitTime :: Integer -> ClockTime -> IntegerSource

getTimeSeconds :: (Fractional time, Monad m) => T m -> m timeSource

clockTimeToSeconds :: Fractional time => ClockTime -> timeSource

wait :: Monad m => T m -> Integer -> m ()Source

waitUntil :: Monad m => T m -> Integer -> m ()Source

waitUntilSeconds :: (RealFrac time, Monad m) => T m -> time -> m ()Source