CreatingRhythms-0.0.27.0
Copyright(c) Eric Bailey 2025
LicenseMIT
Maintainereric@ericb.me
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Rhythm.Christoffel

Description

Christoffel words.

Synopsis

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]