tidal-1.9.5: Pattern language for improvised music
Safe HaskellNone
LanguageHaskell2010

Sound.Tidal.Stream

Synopsis

Documentation

data Stream Source #

Constructors

Stream 

Fields

streamMute :: Stream -> ID -> IO () Source #

streamUnmute :: Stream -> ID -> IO () Source #

streamSolo :: Stream -> ID -> IO () Source #

streamUnsolo :: Stream -> ID -> IO () Source #

streamNudgeAll :: Stream -> Double -> IO () Source #

streamSetI :: Stream -> String -> Pattern Int -> IO () Source #

streamSetF :: Stream -> String -> Pattern Double -> IO () Source #

streamSetS :: Stream -> String -> Pattern String -> IO () Source #

streamSetR :: Stream -> String -> Pattern Rational -> IO () Source #

streamSetB :: Stream -> String -> Pattern Bool -> IO () Source #

data Target Source #

Constructors

Target 

Fields

Instances

Instances details
Show Target Source # 
Instance details

Defined in Sound.Tidal.Stream

Methods

showsPrec :: Int -> Target -> ShowS

show :: Target -> String #

showList :: [Target] -> ShowS

data OSC Source #

Constructors

OSC 

Fields

OSCContext 

Fields

Instances

Instances details
Show OSC Source # 
Instance details

Defined in Sound.Tidal.Stream

Methods

showsPrec :: Int -> OSC -> ShowS

show :: OSC -> String #

showList :: [OSC] -> ShowS

data Cx Source #

Constructors

Cx 

Fields

Instances

Instances details
Show Cx Source # 
Instance details

Defined in Sound.Tidal.Stream

Methods

showsPrec :: Int -> Cx -> ShowS

show :: Cx -> String #

showList :: [Cx] -> ShowS

data StampStyle Source #

Constructors

BundleStamp 
MessageStamp 

Instances

Instances details
Show StampStyle Source # 
Instance details

Defined in Sound.Tidal.Stream

Methods

showsPrec :: Int -> StampStyle -> ShowS

show :: StampStyle -> String #

showList :: [StampStyle] -> ShowS

Eq StampStyle Source # 
Instance details

Defined in Sound.Tidal.Stream

Methods

(==) :: StampStyle -> StampStyle -> Bool

(/=) :: StampStyle -> StampStyle -> Bool

data Schedule Source #

Constructors

Pre StampStyle 
Live 

Instances

Instances details
Show Schedule Source # 
Instance details

Defined in Sound.Tidal.Stream

Methods

showsPrec :: Int -> Schedule -> ShowS

show :: Schedule -> String #

showList :: [Schedule] -> ShowS

Eq Schedule Source # 
Instance details

Defined in Sound.Tidal.Stream

Methods

(==) :: Schedule -> Schedule -> Bool

(/=) :: Schedule -> Schedule -> Bool

data Args Source #

Constructors

Named 

Fields

ArgList [(String, Maybe Value)] 

Instances

Instances details
Show Args Source # 
Instance details

Defined in Sound.Tidal.Stream

Methods

showsPrec :: Int -> Args -> ShowS

show :: Args -> String #

showList :: [Args] -> ShowS

sDefault :: String -> Maybe Value Source #

fDefault :: Double -> Maybe Value Source #

iDefault :: Int -> Maybe Value Source #

bDefault :: Bool -> Maybe Value Source #

xDefault :: [Word8] -> Maybe Value Source #

verbose :: Config -> String -> IO () Source #

openListener :: Config -> IO (Maybe Udp) Source #

resolve :: String -> String -> IO AddrInfo Source #

ctrlResponder :: Int -> Config -> Stream -> IO () Source #

sendO :: Bool -> Maybe Udp -> Cx -> Message -> IO () Source #

sendBndl :: Bool -> Maybe Udp -> Cx -> Bundle -> IO () Source #

startMulti :: [Target] -> Config -> IO () Source #

toDatum :: Value -> Datum Source #

toData :: OSC -> Event ValueMap -> Maybe [Datum] Source #

substitutePath :: String -> ValueMap -> Maybe String Source #

getString :: ValueMap -> String -> Maybe String Source #

hasSolo :: Map k PlayState -> Bool Source #

toOSC :: [Int] -> ProcessedEvent -> OSC -> [(Double, Bool, Message)] Source #

doTick :: Stream -> TickState -> LinkOperations -> ValueMap -> IO ValueMap Source #

Query the current pattern (contained in argument stream :: Stream) for the events in the current arc (contained in argument st :: T.State), translate them to OSC messages, and send these.

If an exception occurs during sending, this functions prints a warning and continues, because the likely reason is that the backend (supercollider) isn't running.

If any exception occurs before or outside sending (e.g., while querying the pattern, while computing a message), this function prints a warning and resets the current pattern to the previous one (or to silence if there isn't one) and continues, because the likely reason is that something is wrong with the current pattern.

send :: Maybe Udp -> Cx -> Double -> Double -> (Double, Bool, Message) -> IO () Source #

withPatIds :: Stream -> [ID] -> (PlayState -> PlayState) -> IO () Source #

streamMutes :: Stream -> [ID] -> IO () Source #

streamSilence :: Stream -> ID -> IO () Source #

streamGet :: Stream -> String -> IO (Maybe Value) Source #

streamSet :: Valuable a => Stream -> String -> Pattern a -> IO () Source #

recvMessagesTimeout :: Transport t => Double -> t -> IO [Message] Source #

streamGetcps :: Stream -> IO Double Source #

streamGetnow :: Stream -> IO Double Source #

streamGetAhead :: Stream -> IO Double Source #