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

Data.Rhythm.BDF

Description

Binary rhythm definitions, including conversion to ABC notation.

Synopsis

Documentation

data BinaryRhythmDefinition Source #

A binary rhythm definition consists of a tempo, a note count \(n\), a rhythm count \(m\), and a list of \(m\) binary rhythms consisting of \(n\) notes.

Constructors

BinaryRhythmDefinition 

Fields

data BinaryRhythm Source #

A binary rhythm consists of a MIDI instrument number and a list of binary words where a 1 represents an onset.

Constructors

BinaryRhythm 

Fields

Instances

Instances details
Show BinaryRhythm Source # 
Instance details

Defined in Data.Rhythm.BDF

Eq BinaryRhythm Source # 
Instance details

Defined in Data.Rhythm.BDF

binaryRhythmDefinition :: Parser BinaryRhythmDefinition Source #

Parse a binary rhythm definition.

toAbcString :: String -> Int -> BinaryRhythmDefinition -> String Source #

Given a title and a number of repeats, represent a binary rhythm definition using ABC notation.