opensoundcontrol-ht- Haskell OpenSoundControl utilities

Safe HaskellNone



Run a generic Transport monad action in the IO monad using the IO transport types, e.g. TCP, UDP, or File.



type T t = ReaderT t IOSource

class Transport t

Abstract over the underlying transport protocol.


send :: C m => OSC -> m ()Source

Encode and send an OSC packet.

recv :: C m => m OSCSource

Receive and decode an OSC packet.

wait :: C m => String -> m OSCSource

A waitFor for variant matching on address string of messages.

waitFor :: C m => (OSC -> Maybe a) -> m aSource

Wait for an OSC message where the supplied function does not give Nothing, discarding intervening messages.

with :: Transport t => IO t -> T t a -> IO aSource

Bracket Open Sound Control communication.