| Copyright | (c) Eric Bailey 2025 |
|---|---|
| License | MIT |
| Maintainer | eric@ericb.me |
| Stability | stable |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | GHC2021 |
Data.Rhythm.Binary.Intervals
Description
Conversion between binary strings and lists of intervals.
Synopsis
- binaryToIntervals :: String -> [Int]
- intervalsToBinary :: [Int] -> String
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"