Understanding the abcjs configuration options
This app is a companion to abcjs. It is intended to help the programmer who plans to incorporate abcjs into their website understand the large number of options available.
All of the public entry points and parameters that abcjs provides are represented in one of the pages of this app.
There are different configuration options for the standard music engraver, the MIDI generator, and the interactive textarea version. In addition, there is some limited animation available that is not part of the audio playback. The sheet music is rendered as an SVG and is marked up with certain classes to give the programmer more control, after the music is generated, to manipulate it. There are also some convenience functions that break apart a multi-tune ABC string.
The examples depend on some input text in ABC format. You may enter the text you wish to test below, or just use the sample tunebook that is already entered.
The library can be loaded in two ways: with npm package manager or by directly including a script in your file.
npm install --save-dev abcjs
import abcjs from 'abcjs';
npm install --save-dev abcjs npm install --save-dev font-awesome
import 'font-awesome/css/font-awesome.min.css'; import 'abcjs/abcjs-midi.css'; import abcjs from 'abcjs/midi';
The version of the loaded abcjs library can be obtained like this:
import abcjs from 'abcjs/midi'; console.log(abcjs.signature); // prints --> ""