vivid-0.2.0.5: Sound synthesis with SuperCollider

Safe HaskellNone
LanguageHaskell98
Extensions
  • ScopedTypeVariables
  • OverloadedStrings
  • ViewPatterns
  • ExplicitForAll
  • LambdaCase

Vivid.OSC

Description

You probably don't need to use this directly

Representation of Open Sound Control data

Synopsis

Documentation

data OSC Source

An OSC message, e.g.

OSC "/n_free" [OSC_I 42]

Constructors

OSC ByteString [OSCDatum] 

data OSCDatum Source

Constructors

OSC_I Int32 
OSC_S ByteString 
OSC_F Float 
OSC_D Double

This isn't a base type in the OSC standard but the response message from "/status" uses it...

OSC_B ByteString 

newtype Timestamp Source

This is stored as the number of seconds since Jan 1 1900. You can get it with getTime

Constructors

Timestamp Double 

encodeOSCBundles :: [OSCBundle] -> ByteString Source

Encode OSC bundles, specifically for NRT synthesis. (It's more than just "mconcat . map encodeOSCBundle").

Note also that the last action is when the song ends - so if you want e.g. a note to hold at the end you need to add a "wait"