hosc-0.11: Haskell Open Sound Control

Sound.OpenSoundControl.Type

Description

Alegbraic data types for OSC datum and packets.

Synopsis

Documentation

data OSC Source

An OSC packet.

Constructors

Message String [Datum] 
Bundle Time [OSC] 

Instances

Eq OSC 
Ord OSC

OSC bundles can be ordered (time ascending). Bundles and messages compare EQ.

Read OSC 
Show OSC 

data Datum Source

The basic elements of OSC messages.

Instances

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

Message constructor. It is an error if the address doesn't conform to the OSC specification.

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

Bundle constructor. It is an error if the OSC list is empty.

tag :: Datum -> CharSource

Single character identifier of an OSC datum.