Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data TidalParseError = TidalParseError {
- parsecError :: ParseError
- code :: String
- type MyParser = Parsec String Int
- data TPat a
- = TPat_Atom (Maybe ((Int, Int), (Int, Int))) a
- | TPat_Fast (TPat Time) (TPat a)
- | TPat_Slow (TPat Time) (TPat a)
- | TPat_DegradeBy Int Double (TPat a)
- | TPat_CycleChoose Int [TPat a]
- | TPat_Euclid (TPat Int) (TPat Int) (TPat Int) (TPat a)
- | TPat_Stack [TPat a]
- | TPat_Polyrhythm (Maybe (TPat Rational)) [TPat a]
- | TPat_Seq [TPat a]
- | TPat_Silence
- | TPat_Foot
- | TPat_Elongate Rational (TPat a)
- | TPat_Repeat Int (TPat a)
- | TPat_EnumFromTo (TPat a) (TPat a)
- | TPat_Var String
- toPat :: (Parseable a, Enumerable a) => TPat a -> Pattern a
- resolve_tpat :: (Enumerable a, Parseable a) => TPat a -> (Rational, Pattern a)
- resolve_seq :: (Enumerable a, Parseable a) => [TPat a] -> (Rational, Pattern a)
- resolve_size :: [TPat a] -> [(Rational, TPat a)]
- parseBP :: (Enumerable a, Parseable a) => String -> Either ParseError (Pattern a)
- parseBP_E :: (Enumerable a, Parseable a) => String -> Pattern a
- parseTPat :: Parseable a => String -> Either ParseError (TPat a)
- cP :: (Enumerable a, Parseable a) => String -> Pattern a
- class Parseable a where
- class Enumerable a where
- fromTo :: a -> a -> Pattern a
- fromThenTo :: a -> a -> a -> Pattern a
- enumFromTo' :: (Ord a, Enum a) => a -> a -> Pattern a
- enumFromThenTo' :: (Ord a, Enum a, Num a) => a -> a -> a -> Pattern a
- type ColourD = Colour Double
- lexer :: GenTokenParser String u Identity
- braces :: MyParser a -> MyParser a
- brackets :: MyParser a -> MyParser a
- parens :: MyParser a -> MyParser a
- angles :: MyParser a -> MyParser a
- symbol :: String -> MyParser String
- natural :: MyParser Integer
- integer :: MyParser Integer
- decimal :: MyParser Integer
- float :: MyParser Double
- naturalOrFloat :: MyParser (Either Integer Double)
- data Sign
- applySign :: Num a => Sign -> a -> a
- sign :: MyParser Sign
- intOrFloat :: MyParser Double
- parseRhythm :: Parseable a => MyParser (TPat a) -> String -> Either ParseError (TPat a)
- pSequence :: Parseable a => MyParser (TPat a) -> GenParser Char Int (TPat a)
- pSingle :: MyParser (TPat a) -> MyParser (TPat a)
- pVar :: MyParser (TPat a)
- pPart :: Parseable a => MyParser (TPat a) -> MyParser (TPat a)
- newSeed :: MyParser Int
- pPolyIn :: Parseable a => MyParser (TPat a) -> MyParser (TPat a)
- pPolyOut :: Parseable a => MyParser (TPat a) -> MyParser (TPat a)
- pCharNum :: MyParser Char
- pString :: MyParser String
- wrapPos :: MyParser (TPat a) -> MyParser (TPat a)
- pVocable :: MyParser (TPat String)
- pChar :: MyParser (TPat Char)
- pDouble :: MyParser (TPat Double)
- pBool :: MyParser (TPat Bool)
- parseIntNote :: Integral i => MyParser i
- parseInt :: MyParser Int
- pIntegral :: Integral a => MyParser (TPat a)
- parseChord :: (Enum a, Num a) => MyParser [a]
- parseNote :: Num a => MyParser a
- fromNote :: Num a => Pattern String -> Pattern a
- pColour :: MyParser (TPat ColourD)
- pMult :: TPat a -> MyParser (TPat a)
- pRand :: TPat a -> MyParser (TPat a)
- pE :: TPat a -> MyParser (TPat a)
- pRatio :: MyParser Rational
- pRatioChar :: Fractional a => MyParser a
- pRational :: MyParser (TPat Rational)
Documentation
data TidalParseError Source #
Instances
Eq TidalParseError Source # | |
Defined in Sound.Tidal.ParseBP (==) :: TidalParseError -> TidalParseError -> Bool # (/=) :: TidalParseError -> TidalParseError -> Bool # | |
Show TidalParseError Source # | |
Defined in Sound.Tidal.ParseBP showsPrec :: Int -> TidalParseError -> ShowS # show :: TidalParseError -> String # showList :: [TidalParseError] -> ShowS # | |
Exception TidalParseError Source # | |
Defined in Sound.Tidal.ParseBP |
AST representation of patterns
TPat_Atom (Maybe ((Int, Int), (Int, Int))) a | |
TPat_Fast (TPat Time) (TPat a) | |
TPat_Slow (TPat Time) (TPat a) | |
TPat_DegradeBy Int Double (TPat a) | |
TPat_CycleChoose Int [TPat a] | |
TPat_Euclid (TPat Int) (TPat Int) (TPat Int) (TPat a) | |
TPat_Stack [TPat a] | |
TPat_Polyrhythm (Maybe (TPat Rational)) [TPat a] | |
TPat_Seq [TPat a] | |
TPat_Silence | |
TPat_Foot | |
TPat_Elongate Rational (TPat a) | |
TPat_Repeat Int (TPat a) | |
TPat_EnumFromTo (TPat a) (TPat a) | |
TPat_Var String |
resolve_tpat :: (Enumerable a, Parseable a) => TPat a -> (Rational, Pattern a) Source #
resolve_seq :: (Enumerable a, Parseable a) => [TPat a] -> (Rational, Pattern a) Source #
parseBP :: (Enumerable a, Parseable a) => String -> Either ParseError (Pattern a) Source #
class Parseable a where Source #
tPatParser :: MyParser (TPat a) Source #
doEuclid :: Pattern Int -> Pattern Int -> Pattern Int -> Pattern a -> Pattern a Source #
getControl :: String -> Pattern a Source #
class Enumerable a where Source #
parseRhythm :: Parseable a => MyParser (TPat a) -> String -> Either ParseError (TPat a) Source #
parseIntNote :: Integral i => MyParser i Source #
pRatioChar :: Fractional a => MyParser a Source #
Orphan instances
(Enumerable a, Parseable a) => IsString (Pattern a) Source # | |
fromString :: String -> Pattern a # |