Aberrismic theory: Difference between revisions

Inthar (talk | contribs)
Inthar (talk | contribs)
m →Code: Not reducing turns out to be better for reasoning about solutions to ax+by+cz = n.
Line 96: Line 96:
   in sortBy (\x y -> compare (fst x) (fst y)) -- sort the list, which is finite, by the edo
   in sortBy (\x y -> compare (fst x) (fst y)) -- sort the list, which is finite, by the edo
       $ filter (\x -> (fst x) <= edoBound) -- filter edos that exceed `edoBound`
       $ filter (\x -> (fst x) <= edoBound) -- filter edos that exceed `edoBound`
       [ (edo, (x`div`d, y`div`d, z`div`d)) -- divide step sizes by gcd
       [ (edo, (x, y, z)) -- divide step sizes by gcd
       | x <- sizesOfL, y <- sizesOfM, z <- sizesOfS,  
       | x <- sizesOfL, y <- sizesOfM, z <- sizesOfS,  
        let d = gcd x (gcd y z),
         let edo = countL*x + countM*y + countS*z,
         let edo = countL*x + countM*y + countS*z,
         let aberSize = stepsOfEdoInCents z edo, -- compute aberrisma size in given tuning
         let aberSize = stepsOfEdoInCents z edo, -- compute aberrisma size in given tuning
Line 104: Line 103:
{-  
{-  
`boundedEdosWithTernaryAberrismicScale 53 20.0 60.0 5 2 3` returns:
`boundedEdosWithTernaryAberrismicScale 53 20.0 60.0 5 2 3` returns:
`[(22,(3,2,1)),(27,(4,2,1)),(29,(4,3,1)),(32,(5,2,1)),(34,(5,3,1)),(36,(5,4,1)),(37,(6,2,1)),(39,(6,3,1)),(41,(6,4,1)),(42,(6,3,2)),(42,(7,2,1)),(43,(6,5,1)),(44,(3,2,1)),(44,(7,3,1)),(46,(6,5,2)),(46,(7,4,1)),(47,(7,3,2)),(47,(8,2,1)),(48,(7,5,1)),(49,(7,4,2)),(49,(8,3,1)),(50,(7,6,1)),(51,(7,5,2)),(51,(8,4,1)),(52,(8,3,2)),(52,(9,2,1)),(53,(7,6,2)),(53,(8,5,1))]`
`[(22,(3,2,1)),(27,(4,2,1)),(29,(4,3,1)),(32,(5,2,1)),(34,(5,3,1)),(36,(5,4,1)),(37,(6,2,1)),(39,(6,3,1)),(41,(6,4,1)),(42,(6,3,2)),(42,(7,2,1)),(43,(6,5,1)),(44,(6,4,2)),(44,(7,3,1)),(46,(6,5,2)),(46,(7,4,1)),(47,(7,3,2)),(47,(8,2,1)),(48,(7,5,1)),(49,(7,4,2)),(49,(8,3,1)),(50,(7,6,1)),(51,(7,5,2)),(51,(8,4,1)),(52,(8,3,2)),(52,(9,2,1)),(53,(7,6,2)),(53,(8,5,1))]`
-}
-}
</syntaxhighlight>
</syntaxhighlight>
[[Category:Terms]]
[[Category:Terms]]
[[Category:Aberrismic theory|*]]<!--Main article-->
[[Category:Aberrismic theory|*]]<!--Main article-->