Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data TidalParseError = TidalParseError {
- parsecError :: ParseError
- code :: String
- data TPat a
- = TPat_Atom a
- | TPat_Density (TPat Time) (TPat a)
- | TPat_Slow (TPat Time) (TPat a)
- | TPat_Zoom Arc (TPat a)
- | TPat_DegradeBy Double (TPat a)
- | TPat_Silence
- | TPat_Foot
- | TPat_Elongate Int
- | TPat_EnumFromTo (TPat a) (TPat a)
- | TPat_Cat [TPat a]
- | TPat_TimeCat [TPat a]
- | TPat_Overlay (TPat a) (TPat a)
- | TPat_Stack [TPat a]
- | TPat_ShiftL Time (TPat a)
- | TPat_pE (TPat Int) (TPat Int) (TPat Int) (TPat a)
- toPat :: (Enumerable a, Parseable a) => TPat a -> Pattern a
- durations :: [TPat a] -> [(Int, 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)
- 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 :: Parser a -> Parser a
- brackets :: Parser a -> Parser a
- parens :: Parser a -> Parser a
- angles :: Parser a -> Parser a
- symbol :: String -> Parser String
- natural :: Parser Integer
- integer :: Parser Integer
- float :: Parser Double
- naturalOrFloat :: Parser (Either Integer Double)
- data Sign
- applySign :: Num a => Sign -> a -> a
- sign :: Parser Sign
- intOrFloat :: Parser Double
- parseRhythm :: Parseable a => Parser (TPat a) -> String -> Either ParseError (TPat a)
- pSequenceN :: Parseable a => Parser (TPat a) -> GenParser Char () (Int, TPat a)
- elongate :: [TPat a] -> TPat a
- splitFeet :: [TPat t] -> [[TPat t]]
- pSequence :: Parseable a => Parser (TPat a) -> GenParser Char () (TPat a)
- pSingle :: Parser (TPat a) -> Parser (TPat a)
- pPart :: Parseable a => Parser (TPat a) -> Parser [TPat a]
- pPolyIn :: Parseable a => Parser (TPat a) -> Parser (TPat a)
- pPolyOut :: Parseable a => Parser (TPat a) -> Parser (TPat a)
- pString :: Parser String
- pVocable :: Parser (TPat String)
- pDouble :: Parser (TPat Double)
- pBool :: Parser (TPat Bool)
- parseIntNote :: Integral i => Parser i
- parseInt :: Parser Int
- pIntegral :: Integral a => Parser (TPat a)
- parseChord :: (Enum a, Num a) => Parser [a]
- parseNote :: Num a => Parser a
- fromNote :: Num a => Pattern String -> Pattern a
- pColour :: Parser (TPat ColourD)
- pMult :: TPat a -> Parser (TPat a)
- pRand :: TPat a -> Parser (TPat a)
- pE :: TPat a -> Parser (TPat a)
- pReplicate :: TPat a -> Parser [TPat a]
- pStretch :: TPat a -> Parser [TPat a]
- pRatio :: Parser Rational
- pRational :: Parser (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 a | |
TPat_Density (TPat Time) (TPat a) | |
TPat_Slow (TPat Time) (TPat a) | |
TPat_Zoom Arc (TPat a) | |
TPat_DegradeBy Double (TPat a) | |
TPat_Silence | |
TPat_Foot | |
TPat_Elongate Int | |
TPat_EnumFromTo (TPat a) (TPat a) | |
TPat_Cat [TPat a] | |
TPat_TimeCat [TPat a] | |
TPat_Overlay (TPat a) (TPat a) | |
TPat_Stack [TPat a] | |
TPat_ShiftL Time (TPat a) | |
TPat_pE (TPat Int) (TPat Int) (TPat Int) (TPat a) |
parseBP :: (Enumerable a, Parseable a) => String -> Either ParseError (Pattern a) Source #
class Parseable a where Source #
tPatParser :: Parser (TPat a) Source #
doEuclid :: Pattern Int -> Pattern Int -> Pattern Int -> Pattern a -> Pattern a Source #
class Enumerable a where Source #
parseRhythm :: Parseable a => Parser (TPat a) -> String -> Either ParseError (TPat a) Source #
parseIntNote :: Integral i => Parser i Source #
Orphan instances
(Enumerable a, Parseable a) => IsString (Pattern a) Source # | |
fromString :: String -> Pattern a # |