Module

Data.Abc.Normaliser

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

#normalise Source

normalise :: AbcTune -> AbcTune

normalise the tune by flattening any broken rhythm pairs and regularising chord representations

#normaliseBrokenRhythm Source

normaliseBrokenRhythm :: Broken -> RestOrNote -> RestOrNote -> (Tuple Music Music)

Apply the specified broken rhythm to each note in the note pair (presented individually) and return the broken note pair simply as a pair of normalised Music items held in a Tuple

#normaliseChord Source

normaliseChord :: AbcChord -> AbcChord

Normalise an ABC chord by placing the correct duration against each note and setting the overall Chord length to Unit

#normaliseTuneBody Source

normaliseTuneBody :: TuneBody -> TuneBody

as for normalise but just applied to the tune body