Kulitta-2.2.1: Library for automated composition and musical learning
Kulitta.Learning.TemporalGen
type TSym a = (a, Rational) Source #
type RHS a = [TSym a] Source #
type TRule a = (a, RHS a) Source #
tSeed :: Sentence CType MP Source #
maxDur :: Dur Source #
minDur :: Dur Source #
dataPoints :: Int Source #
rSeed :: Int Source #
iters :: Int Source #
useLets :: Bool Source #
infInts :: RandomGen b => b -> [Int] Source #
genData :: [[(CType, MP)]] Source #
writeData :: IO () Source #
convRule :: (Prob, TRule a) -> Rule a MP Source #
toRuleFun :: [(a, Dur)] -> RuleFun a MP Source #
readTemporalRules :: FilePath -> IO ((CType, Dur), [(Prob, TRule CType)]) Source #
readTemporalRules2 :: FilePath -> IO ((CType, Dur), [Rule CType MP]) Source #
readPTGG :: FilePath -> IO ((CType, Dur), [Rule CType MP]) Source #
readTemporalData :: FilePath -> IO [[(CType, Dur)]] Source #
showTemporal :: ((CType, Dur), [TRule CType]) -> String Source #
showTRule :: (Show a1, Show a2) => (a1, [a2]) -> [Char] Source #
printTemporal :: ((CType, Dur), [TRule CType]) -> IO () Source #
genFromFile :: FilePath -> FilePath -> Dur -> p -> Int -> Int -> IO () Source #
genDataTest :: IO () Source #
genDataTest2 :: IO () Source #
trules2 :: IO () Source #
trules3 :: IO () Source #