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

Sound.Tidal.Stream.Process

Synopsis

Documentation

doTick :: MVar ValueMap -> MVar PlayMap -> MVar (ControlPattern -> ControlPattern) -> [Cx] -> (Time, Time) -> Double -> ClockConfig -> ClockRef -> (SessionState, SessionState) -> IO () 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.