abc2svg is a rewrite of abcm2ps into Javascript.

It permits to edit, display, print and play music from ABC files 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 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 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, before </head>, insert these two lines:

<script src="" type="text/javascript"></script>
<script src="" type="text/javascript"></script>
for rendering and also
<script src="" type="text/javascript"></script>
for playing. See this page for an example.

When looking at a ABC file in a web browser, you may also use this bookmarklet, ABC render , and render the music.


Source tarball

Links to pages using abc2svg:

Kemm diwezhaƱ: 21 a viz Ebrel 2017