Safe Haskell | None |
---|---|
Language | Haskell98 |
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
- defineSDFromFile :: SynthDef a -> IO ()
Documentation
defineSDFromFile :: SynthDef a -> IO () Source #
Synchronous
Orphan instances
VividAction IO Source # | |
callOSC :: OSC -> IO () Source # callBS :: ByteString -> IO () Source # waitForSync :: SyncId -> IO () Source # wait :: Real n => n -> IO () Source # getTime :: IO Timestamp Source # newBufferId :: IO BufferId Source # newNodeId :: IO NodeId Source # newSyncId :: IO SyncId Source # |