Copyright | (c) Eric Bailey 2025 |
---|---|
License | MIT |
Maintainer | eric@ericb.me |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Data.Rhythm.Christoffel
Description
Christoffel words.
Documentation
christoffelWord :: Bool -> Integer -> Integer -> Maybe Int -> [Integer] Source #
Generate the upper or lower Christoffel word for a given slope with a given number of terms.
>>>
christoffelWord False 3 7 Nothing
[0,0,0,1,0,0,1,0,0,1]
>>>
christoffelWord True 3 7 Nothing
[1,0,0,1,0,0,1,0,0,0]
>>>
christoffelWord True 3 7 (Just 20)
[1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,0]