opensoundcontrol-ht-0.1: Haskell OpenSoundControl utilities

Sound.OpenSoundControl.Transport.Monad

Description

Monad class for monads that are able to do or simulate communication via Open Sound Control.

Synopsis

Documentation

class Monad m => C m whereSource

Methods

send :: OSC -> m ()Source

Encode and send an OSC packet.

recv :: m OSCSource

Receive and decode an OSC packet.

Instances

C T 
(Transport t, MonadIO io) => C (ReaderT t io) 

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

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

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

A waitFor for variant matching on address string of messages.