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

Data.Rhythm.Binary.Intervals

Description

Conversion between binary strings and lists of intervals.

Synopsis

Documentation

binaryToIntervals :: String -> [Int] Source #

Convert a binary string to a list of intervals.

>>> binaryToIntervals "1010010001001000"
[2,3,4,3,4]

intervalsToBinary :: [Int] -> String Source #

Convert a list of intervals to a binary string.

>>> intervalsToBinary [2,3,4,3,4]
"1010010001001000"