tidal-0.9.4: Pattern language for improvised music

Safe HaskellNone
LanguageHaskell2010

Sound.Tidal.Stream

Synopsis

Documentation

data Backend a Source #

Constructors

Backend 

Fields

data Param Source #

Constructors

S 
F 
I 

Fields

Instances

Eq Param Source # 

Methods

(==) :: Param -> Param -> Bool #

(/=) :: Param -> Param -> Bool #

Ord Param Source # 

Methods

compare :: Param -> Param -> Ordering #

(<) :: Param -> Param -> Bool #

(<=) :: Param -> Param -> Bool #

(>) :: Param -> Param -> Bool #

(>=) :: Param -> Param -> Bool #

max :: Param -> Param -> Param #

min :: Param -> Param -> Param #

Show Param Source # 

Methods

showsPrec :: Int -> Param -> ShowS #

show :: Param -> String #

showList :: [Param] -> ShowS #

data Shape Source #

Constructors

Shape 

Fields

data Value Source #

Constructors

VS 

Fields

VF 

Fields

VI 

Fields

Instances

Eq Value Source # 

Methods

(==) :: Value -> Value -> Bool #

(/=) :: Value -> Value -> Bool #

Ord Value Source # 

Methods

compare :: Value -> Value -> Ordering #

(<) :: Value -> Value -> Bool #

(<=) :: Value -> Value -> Bool #

(>) :: Value -> Value -> Bool #

(>=) :: Value -> Value -> Bool #

max :: Value -> Value -> Value #

min :: Value -> Value -> Value #

Show Value Source # 

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

class ParamType a where Source #

Minimal complete definition

fromV, toV

Methods

fromV :: Value -> Maybe a Source #

toV :: a -> Value Source #

isSubset :: Eq a => [a] -> [a] -> Bool Source #

doAt :: RealFrac a => a -> IO () -> IO () Source #

make :: (a -> Value) -> Shape -> String -> Pattern a -> ParamPattern Source #

mergeWith :: (Ord k, Applicative f) => (k -> a -> a -> a) -> f (Map k a) -> f (Map k a) -> f (Map k a) Source #

mergeNumWith :: Applicative f => (Int -> Int -> Int) -> (Double -> Double -> Double) -> f (Map Param Value) -> f (Map Param Value) -> f (Map Param Value) Source #

(###) :: Foldable t => ParamPattern -> t ParamPattern -> ParamPattern Source #

These are shorthand for merging lists of patterns with #, |*|, |+|, or |/|. Sometimes this saves a little typing and can improve readability when passing things into other functions. As an example, instead of writing d1 $ sometimes ((|*| speed "2") . (|*| cutoff "2") . (|*| shape "1.5")) $ sound "arpy*4" shape "0.3" you can write d1 $ sometimes (*** [speed "2", cutoff "2", shape "1.5"]) $ sound "arpy*4" ### [cutoff "350", shape "0.3"]

setter :: MVar (a, [a]) -> a -> IO () Source #

copyParam :: Param -> Param -> ParamPattern -> ParamPattern Source #

Copies values from one parameter to another. Used by nToOrbit in Sound.Tidal.Dirt.