Safe Haskell | None |
---|---|
Language | Haskell98 |
This is for timing of actions that's more precise than IO
It tells the server when to perform the actions, so musical timing won't be affected by e.g. network latency or the time it took to compute a value
If you're running vivid on a different computer than the SC synth, make sure the clocks agree
Synopsis
- type Scheduled = StateT Timestamp IO
- doScheduledIn :: Double -> Scheduled a -> IO a
- doScheduledAt :: Timestamp -> Scheduled a -> IO a
- doScheduledNow :: Scheduled a -> IO a
Documentation
doScheduledIn :: Double -> Scheduled a -> IO a Source #
Schedule an action to happen n seconds from now
doScheduledAt :: Timestamp -> Scheduled a -> IO a Source #
Schedule an action to happen at the given time
doScheduledNow :: Scheduled a -> IO a Source #
Schedule an action to happen right now. Because of server latency this
could arrive late, so you might want to do something like
doScheduledIn 0.01
instead:
Orphan instances
VividAction Scheduled Source # | |
callOSC :: OSC -> Scheduled () Source # callBS :: ByteString -> Scheduled () Source # waitForSync :: SyncId -> Scheduled () Source # wait :: Real n => n -> Scheduled () Source # getTime :: Scheduled Timestamp Source # newBufferId :: Scheduled BufferId Source # newNodeId :: Scheduled NodeId Source # newSyncId :: Scheduled SyncId Source # |