Module

Data.Abc.Repeats.Types

Package
purescript-abc-parser
Repository
newlandsvalley/purescript-abc-parser

Data types representing tune sections as defined by bar number indexes and repeat indicators which are either simple repeats or variant repeats (voltas)

#BarNo Source

type BarNo = Int

#Section Source

newtype Section

a section of the tune (possibly repeated) with indices given by the bar number where the feature lives

Constructors

Instances

#Sections Source

type Sections = List Section

a set of sections

#RepeatState Source

type RepeatState = { current :: Section, intro :: Array Int, sections :: Sections }

the current repeat state

#VariantPositions Source

type VariantPositions = Map Int BarNo

a map of variant number (wrt offest zero - i.e. |1 becomes 0) to the bar number where that variant is found