abc2svg

abc2svg is a rewrite of abcm2ps into Javascript.

It permits to display and play music from ABC source in web browsers.

The main script (core - abc2svg-1.js ~260Kb) contains the ABC parser and the generation engine.
It is directly used in this ABC viewer/editor.

A second version (abcps2svg-1.js ~280Kb) contains a small PostScript interpreter which may render some customized decorations.
Here is the associated ABC + PS viewer/editor.

An other script (abcemb-1.js ~2Kb) uses the main script to render ABC fragments which may be embedded in HTML/XHTML pages.
The ABC fragments start on X: or %abc at start of line, and stop on any ML tag.
Examples may be found in the source of the abcm2ps/abc2svg documentation.

If you also want to offer music in your web pages, just insert these two lines:

<script src="http://moinejf.free.fr/js/abc2svg-1.js" type="text/javascript"></script>
<script src="http://moinejf.free.fr/js/abcemb-1.js" type="text/javascript"></script>
before </head>.

Notes:

Changelog
Source tarball

Links to pages using abc2svg:

Kemm diwezhaƱ: 7 a viz Du 2016