tidal-1.0.0: 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 # 
Instance details

Defined in Sound.Tidal.Parse

Methods

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

show :: TPat a -> String #

showList :: [TPat a] -> ShowS #

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

class Parseable a where Source #

Methods

parseTPat :: String -> TPat a Source #

Instances
Parseable Bool Source # 
Instance details

Defined in Sound.Tidal.Parse

Parseable Double Source # 
Instance details

Defined in Sound.Tidal.Parse

Parseable Int Source # 
Instance details

Defined in Sound.Tidal.Parse

Parseable Integer Source # 
Instance details

Defined in Sound.Tidal.Parse

Parseable Rational Source # 
Instance details

Defined in Sound.Tidal.Parse

Parseable String Source # 
Instance details

Defined in Sound.Tidal.Parse

Parseable ColourD Source # 
Instance details

Defined in Sound.Tidal.Parse

class Enumerable a where Source #

Methods

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

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

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

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

data Sign Source #

Constructors

Positive 
Negative 

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

r :: (Enumerable a, 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

(Enumerable a, Parseable a) => IsString (Pattern a) Source # 
Instance details

Methods

fromString :: String -> Pattern a #