Home

Awesome

purescript-abc-scores

This is a purescript wrapper for VexFlow which is designed to cover just enough of the API in order to allow the engraving of music scores produced by the ABC parser.

It is intended to be a replacement for purescript-scores which itself was a wrapper for VexTab. i.e. the intention is to cut out the middle man (which is anyhow not regularly maintained).

This version is compatible with both Vexflow 4.0.2 and 4.2.3. The former exhibits a mild bug in https://github.com/newlandsvalley/purescript-abc-scores/issues/85 fixed in the later, which unfortunately exhibits a catastrophic bug in https://github.com/newlandsvalley/purescript-abc-editor/issues/3 whenever the canvas is cleared. Therefore, 4.0.2 is recommended.

For more information, see the guide.

To build the library

 spago install
 npm run build

To build the small display examples

 npm run display-tests

To build the full tune example

 npm run full-tune

To build the example showing right-alignment of staves

 npm run align-staves

To build the example showing beaming

 npm run beaming

To build the example showing slurs

 npm run slurs

To build the example showing treble and base clefs

 npm run clefs

To build the example showing chord symbols

 npm run chord-symbols

To build the example showing a thumbnail

(a thumbnail of the initial part of a score for use in lists)

 npm run thumbnail

Limitations