tidal-0.9.9: 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 #

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

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

p :: (Enumerable a, Parseable a) => String -> Pattern a #

class Parseable a where #

Minimal complete definition

parseTPat

Methods

parseTPat :: String -> TPat 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 :: (Enumerable a, 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) #

parseNote :: Num a => Parser 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