tidal-0.9.5: Pattern language for improvised music

Safe HaskellNone
LanguageHaskell2010

Sound.Tidal.Parse

Contents

Synopsis

Documentation

data TPat a Source #

AST representation of patterns

Instances

Show a => Show (TPat a) Source # 

Methods

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

show :: TPat a -> String #

showList :: [TPat a] -> ShowS #

Parseable a => Monoid (TPat a) Source # 

Methods

mempty :: TPat a #

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

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

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

class Parseable a where Source #

Minimal complete definition

parseTPat, fromTo, fromThenTo

Methods

parseTPat :: String -> TPat a Source #

fromTo :: a -> a -> Pattern a Source #

fromThenTo :: a -> a -> a -> Pattern a Source #

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

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

data Sign Source #

Constructors

Positive 
Negative 

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

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

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

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

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

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

Orphan instances