Module
Data.Abc.Repeats.Variant
- Package
- purescript-abc-parser
- Repository
- newlandsvalley/purescript-abc-parser
Variant Repeats
support for the ABC volta construction:
..|1 ..... :|2 ...:|3 ....
or ..|1,2,3.. :|4.... | etc
#secondVariantPosition Source
secondVariantPosition :: Section -> Maybe BarNo
the bar number of the second variant
#findEndingPosition Source
findEndingPosition :: VariantPositions -> Int -> BarNo -> BarNo
When supplied with: the variant positions (map of index to BarNo) the index of the current variant the BarNo of the end of the entire section then find the BarNo of the end of the variant (This can either be the start of the next variant or the section end)
#normaliseVoltas Source
normaliseVoltas :: NonEmptyList Volta -> List Int
Normalise a list of Voltas to a simple list of volta repeat numbers
#variantPositionOf Source
variantPositionOf :: Int -> Section -> Maybe BarNo
the variant bar number of the specified variant number
#variantIndexMax Source
variantIndexMax :: Section -> Int
the maximum index we can use of the active variants
#variantCount Source
variantCount :: Section -> Int
the number of variants in the ending
- Modules
- Data.
Abc - Data.
Abc. Accidentals - Data.
Abc. Canonical - Data.
Abc. KeySignature - Data.
Abc. Meter - Data.
Abc. Midi - Data.
Abc. Midi. Pitch - Data.
Abc. Midi. RepeatSections - Data.
Abc. Midi. Types - Data.
Abc. Octave - Data.
Abc. Optics - Data.
Abc. Parser - Data.
Abc. Repeats. Section - Data.
Abc. Repeats. Types - Data.
Abc. Repeats. Variant - Data.
Abc. Tempo - Data.
Abc. Transposition - Data.
Abc. UnitNote - Data.
Abc. Utils - Data.
Abc. Voice