Aberrismic theory: Difference between revisions
m →Code: Optimized the code. |
m →Code: Update documentation |
||
| Line 88: | Line 88: | ||
generateCombinations edoBound = [(l, m, s) | l <- [3..edoBound], m <- [2..l-1], s <- [1..m-1]] | generateCombinations edoBound = [(l, m, s) | l <- [3..edoBound], m <- [2..l-1], s <- [1..m-1]] | ||
-- Filter the combinations based on the step signature and the | -- Filter the combinations based on the step signature and the given range for the aberrisma (s step). | ||
filterCombinations :: Double -> Double -> Int -> Int -> Int -> [(Int, Int, Int)] -> [(Int, (Int, Int, Int))] | filterCombinations :: Double -> Double -> Int -> Int -> Int -> [(Int, Int, Int)] -> [(Int, (Int, Int, Int))] | ||
filterCombinations aberLower aberUpper countL countM countS combos = | filterCombinations aberLower aberUpper countL countM countS combos = | ||
| Line 98: | Line 98: | ||
{- Return a list of (edo, step ratio) tuples for the `(countL)L(countM)M(countS)s` aberrismic scale where `edo <= edoBound`, | {- Return a list of (edo, step ratio) tuples for the `(countL)L(countM)M(countS)s` aberrismic scale where `edo <= edoBound`, | ||
where the tuning's s step satisfies the bound `aberLower` <= s <= `aberUpper`. | where the tuning's s step satisfies the bound `aberLower` <= s <= `aberUpper`. | ||
Non-coprime step ratios are reduced. -} | Non-coprime step ratios are not reduced. -} | ||
boundedEdosWithTernaryAberrismicScale :: Int -> Double -> Double -> Int -> Int -> Int -> [(Int, (Int, Int, Int))] | boundedEdosWithTernaryAberrismicScale :: Int -> Double -> Double -> Int -> Int -> Int -> [(Int, (Int, Int, Int))] | ||
boundedEdosWithTernaryAberrismicScale edoBound aberLower aberUpper countL countM countS = | boundedEdosWithTernaryAberrismicScale edoBound aberLower aberUpper countL countM countS = | ||