tidal-0.9.6: Pattern language for improvised music

Safe HaskellNone
LanguageHaskell2010

Sound.Tidal.Parse

Contents

Synopsis

Documentation

data TPat a #

AST representation of patterns

Instances

Show a => Show (TPat a) # 

Methods

showsPrec :: Int -> TPat a -> ShowS #

show :: TPat a -> String #

showList :: [TPat a] -> ShowS #

Parseable a => Monoid (TPat a) # 

Methods

mempty :: TPat a #

mappend :: TPat a -> TPat a -> TPat a #

mconcat :: [TPat a] -> TPat a #

toPat :: Parseable a => TPat a -> Pattern a #

durations :: [TPat a] -> [(Int, TPat a)] #

p :: Parseable a => String -> Pattern a #

enumFromTo' :: (Enum a, Ord a) => a -> a -> Pattern a #

enumFromThenTo' :: (Num a, Enum a, Ord a) => a -> a -> a -> Pattern a #

braces :: Parser a -> Parser a #

parens :: Parser a -> Parser a #

angles :: Parser a -> Parser a #

data Sign #

Constructors

Positive 
Negative 

applySign :: Num a => Sign -> a -> a #

r :: Parseable a => String -> Pattern a -> IO (Pattern a) #

elongate :: [TPat a] -> TPat a #

splitFeet :: [TPat t] -> [[TPat t]] #

pSingle :: Parseable a => Parser (TPat a) -> Parser (TPat a) #

pPart :: Parseable a => Parser (TPat a) -> Parser [TPat a] #

pPolyIn :: Parseable a => Parser (TPat a) -> Parser (TPat a) #

pMult :: Parseable a => TPat a -> Parser (TPat a) #

pRand :: Parseable a => TPat a -> Parser (TPat a) #

pE :: Parseable a => TPat a -> Parser (TPat a) #

eoff :: Int -> Int -> Integer -> Pattern a -> Pattern a #

pStretch :: Parseable a => TPat a -> Parser [TPat a] #

Orphan instances

Parseable a => IsString (Pattern a) # 

Methods

fromString :: String -> Pattern a #