Module

Data.Abc.Voice

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

Basic support for polyphonic ABC tunes. Where inline Voice headers are present in the tune body, partition it into seperate bodies, one for each voice. Note that voice headers in the initial TuneHeaders section are ignored here.

#partitionTuneBody Source

partitionTuneBody :: TuneBody -> Array TuneBody

partition the tune body into separate bodies for each voice (where present). If not present, the result is just a singleton voice.