hosc-0.2: Haskell Open Sound Control

Sound.OpenSoundControl.OSC

Synopsis

Documentation

data OSC Source

An OSC packet.

Instances

message :: String -> [Datum] -> OSCSource

OSC message constructor

bundle :: Double -> [OSC] -> OSCSource

OSC bundle constructor

address :: OSC -> Maybe StringSource

Retrieve the address of an OSC message, or Nothing for a bundle.

arguments :: OSC -> Maybe [Datum]Source

Retrieve the arguments of an OSC message, or Nothing for a bundle.

timestamp :: OSC -> Maybe DoubleSource

Retrieve the timestamp of an OSC bundle, or Nothing for a message.

messages :: OSC -> Maybe [OSC]Source

Retrieve the messages in an OSC bundle, or Nothing for a message.

data Datum Source

The basic elements of OSC messages.

Instances

int :: Int -> DatumSource

Construct OSC int datum.

float :: Double -> DatumSource

Construct OSC float datum.

double :: Double -> DatumSource

Construct OSC double datum.

string :: String -> DatumSource

Construct OSC string datum.

blob :: [Word8] -> DatumSource

Construct OSC blob datum.

encodeOSC :: OSC -> ByteStringSource

Encode an OSC packet.

encodeOSC_NTP :: OSC -> ByteStringSource

Encode an OSC packet (NTP epoch).

decodeOSC :: ByteString -> OSCSource

Decode an OSC packet.