Home

Awesome

purescript-scores

DEPRECATED in favour of purescript-abc-scores.

This module provides support for VexTab which is a language for creating and editing musical scores. Vextab itself is an open-source javascript project and is still in a pre-alpha stage. The VexTab language itself compiles to VexFlow which provides the underlying API.

VexTab renders a score by side-effect. You must create a canvas tag in your web page, assign it an id and initialise the module with this id in the configuration. You can then ask it to render some VexTab text - if it is valid then the score will appear in the canvas, otherwise an error will be returned.

The module also allows you to generate a VexTab score from parsed ABC text.

Examples

Note

VexTab has various issues which are not evident in VexFlow itself (the most egregious for our purposes being that notes are not beamed together properly in compound time). Also, it does not appear to be actively maintained at the moment - the last commit to the code base was in July 2016. On the other hand, VexFlow is actively maintained and relatively complete.