Safe Haskell | None |
---|---|
Language | Haskell2010 |
This is unscheduled - the server will do what you tell it to as soon as it can. That can mean there'll be slight delays because of time it took to compute what to do or because of network latency. If you want more precise timing look at Scheduled
Doing "VividAction"s in IO can be like a sketchpad: it's the quickest way to get an idea out. The cool thing is you can take an action that you're sketching and put a function in front of it to get more precise timing E.g. if you have the function:
playTone = do synth <- play $ 0.1 ~* sinOsc (freq_ 440) wait 1 free synth
You can play it quickly with just:
playTone
But if you want precise timing all you need to do is say e.g.:
playScheduledIn 0.01 playTone
Synopsis
- defineSDFromFileWith :: SCServerState -> SynthDef a -> IO ()
Documentation
defineSDFromFileWith :: SCServerState -> SynthDef a -> IO () Source #
Synchronous
Orphan instances
VividAction (ReaderT SCServerState IO) Source # | |
callOSC :: OSC -> ReaderT SCServerState IO () Source # callBS :: ByteString -> ReaderT SCServerState IO () Source # sync :: ReaderT SCServerState IO () Source # waitForSync :: SyncId -> ReaderT SCServerState IO () Source # wait :: Real n => n -> ReaderT SCServerState IO () Source # getTime :: ReaderT SCServerState IO Timestamp Source # newBufferId :: ReaderT SCServerState IO BufferId Source # newNodeId :: ReaderT SCServerState IO NodeId Source # newSyncId :: ReaderT SCServerState IO SyncId Source # fork :: ReaderT SCServerState IO () -> ReaderT SCServerState IO () Source # defineSD :: forall (a :: [Symbol]). SynthDef a -> ReaderT SCServerState IO () Source # |