hosc-0.10.1: Haskell Open Sound Control

Sound.OpenSoundControl

Description

hosc implements a subset of the Open Sound Control byte protocol. The protocol is documented at http://opensoundcontrol.org/.

Synopsis

Documentation

encodeOSC :: OSC -> ByteStringSource

Encode an OSC packet to a lazy ByteString.

decodeOSC :: ByteString -> OSCSource

Decode an OSC packet from a lazy ByteString.

openUDP :: String -> Int -> IO UDPSource

Make a UDP connection.

 withTransport (openUDP "127.0.0.1" 57110) (\fd -> recvT 0.5 fd >>= print)

udpServer :: String -> Int -> IO UDPSource

Trivial udp server.

openTCP :: String -> Int -> IO TCPSource

Make a TCP connection.

tcpServer :: Int -> (TCP -> IO ()) -> IO ()Source

A trivial TCP OSC server.