Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data TidalParseError = TidalParseError {
- parsecError :: ParseError
- code :: String
- type MyParser = Parsec String Int
- data TPat a where
- TPat_Atom :: Maybe ((Int, Int), (Int, Int)) -> a -> TPat a
- TPat_Fast :: TPat Time -> TPat a -> TPat a
- TPat_Slow :: TPat Time -> TPat a -> TPat a
- TPat_DegradeBy :: Int -> Double -> TPat a -> TPat a
- TPat_CycleChoose :: Int -> [TPat a] -> TPat a
- TPat_Euclid :: TPat Int -> TPat Int -> TPat Int -> TPat a -> TPat a
- TPat_Stack :: [TPat a] -> TPat a
- TPat_Polyrhythm :: Maybe (TPat Rational) -> [TPat a] -> TPat a
- TPat_Seq :: [TPat a] -> TPat a
- TPat_Silence :: TPat a
- TPat_Foot :: TPat a
- TPat_Elongate :: Rational -> TPat a -> TPat a
- TPat_Repeat :: Int -> TPat a -> TPat a
- TPat_EnumFromTo :: TPat a -> TPat a -> TPat a
- TPat_Var :: String -> TPat a
- TPat_Chord :: (Num b, Enum b, Parseable b, Enumerable b) => (b -> a) -> TPat b -> TPat String -> [TPat [Modifier]] -> TPat a
- tShowList :: Show a => [TPat a] -> String
- tShow :: Show a => TPat a -> 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)]
- steps_tpat :: Show a => TPat a -> (Rational, String)
- steps_seq :: Show a => [TPat a] -> (Rational, String)
- steps_size :: Show a => [TPat a] -> [(Rational, String)]
- 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
- pSequence :: Parseable a => MyParser (TPat a) -> MyParser (TPat a)
- pRepeat :: TPat a -> MyParser (TPat a)
- pElongate :: TPat a -> MyParser (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)
- pDoubleWithoutChord :: MyParser (TPat Double)
- pNote :: MyParser (TPat Note)
- pNoteWithoutChord :: MyParser (TPat Note)
- pBool :: MyParser (TPat Bool)
- parseIntNote :: Integral i => MyParser i
- pIntegral :: (Integral a, Parseable a, Enumerable a) => MyParser (TPat a)
- pIntegralWithoutChord :: (Integral a, Parseable a, Enumerable 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)
- pRational :: MyParser (TPat Rational)
- pRatio :: MyParser Rational
- pInteger :: MyParser Double
- pFloat :: MyParser Double
- pFraction :: RealFrac a => a -> MyParser Rational
- pRatioChar :: Fractional a => MyParser a
- pRatioSingleChar :: Fractional a => Char -> a -> MyParser a
- isInt :: RealFrac a => a -> Bool
- parseModInv :: MyParser Modifier
- parseModInvNum :: MyParser [Modifier]
- parseModDrop :: MyParser [Modifier]
- parseModOpen :: MyParser Modifier
- parseModRange :: MyParser Modifier
- parseModifiers :: MyParser [Modifier]
- pModifiers :: MyParser (TPat [Modifier])
- pChord :: (Enum a, Num a, Parseable a, Enumerable a) => TPat a -> MyParser (TPat a)
Documentation
data TidalParseError Source #
Instances
Exception TidalParseError Source # | |
Defined in Sound.Tidal.ParseBP | |
Show TidalParseError Source # | |
Defined in Sound.Tidal.ParseBP showsPrec :: Int -> TidalParseError -> ShowS # show :: TidalParseError -> String # showList :: [TidalParseError] -> ShowS # | |
Eq TidalParseError Source # | |
Defined in Sound.Tidal.ParseBP (==) :: TidalParseError -> TidalParseError -> Bool # (/=) :: TidalParseError -> TidalParseError -> Bool # |
AST representation of patterns
TPat_Atom :: Maybe ((Int, Int), (Int, Int)) -> a -> TPat a | |
TPat_Fast :: TPat Time -> TPat a -> TPat a | |
TPat_Slow :: TPat Time -> TPat a -> TPat a | |
TPat_DegradeBy :: Int -> Double -> TPat a -> TPat a | |
TPat_CycleChoose :: Int -> [TPat a] -> TPat a | |
TPat_Euclid :: TPat Int -> TPat Int -> TPat Int -> TPat a -> TPat a | |
TPat_Stack :: [TPat a] -> TPat a | |
TPat_Polyrhythm :: Maybe (TPat Rational) -> [TPat a] -> TPat a | |
TPat_Seq :: [TPat a] -> TPat a | |
TPat_Silence :: TPat a | |
TPat_Foot :: TPat a | |
TPat_Elongate :: Rational -> TPat a -> TPat a | |
TPat_Repeat :: Int -> TPat a -> TPat a | |
TPat_EnumFromTo :: TPat a -> TPat a -> TPat a | |
TPat_Var :: String -> TPat a | |
TPat_Chord :: (Num b, Enum b, Parseable b, Enumerable b) => (b -> a) -> TPat b -> TPat String -> [TPat [Modifier]] -> TPat a |
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 #
parseIntNote :: Integral i => MyParser i Source #
pIntegralWithoutChord :: (Integral a, Parseable a, Enumerable a) => MyParser (TPat a) Source #
pRatioChar :: Fractional a => MyParser a Source #
pRatioSingleChar :: Fractional a => Char -> a -> MyParser a Source #
parseModDrop :: MyParser [Modifier] Source #
Orphan instances
(Enumerable a, Parseable a) => IsString (Pattern a) Source # | |
fromString :: String -> Pattern a # |