supercollider-ht-0.0.1: Haskell SuperCollider utilities

Sound.OpenSoundControl.Transport.Monad

Synopsis

Documentation

class Transport t

Abstract over the underlying transport protocol.

send :: Transport t => OSC -> IO t ()Source

Encode and send an OSC packet over a UDP connection.

recv :: Transport t => IO t OSCSource

Receive and decode an OSC packet over a UDP connection.

wait :: Transport t => String -> IO t OSCSource

Wait for an OSC message with the specified address, discard intervening messages.

close :: Transport t => IO t ()Source

Close a UDP connection.

withTransport :: Transport t => IO t -> IO t a -> IO aSource

Bracket UDP activity.

type IO t a = ReaderT t IO aSource