Scope | Available in |
file | abc2svg >= 1.20.17 |
Define the sound font which is used to play the music.
By default, abc2svg uses a sound font extracted from the SF2 font Scc1t2.
This font is split by instrument to reduce the load time and
it is base64 encoded into a javascript so that it can be loaded
from any HTTP domain. The instruments are stored in the directory
http://moinejf.free.fr/js/Scc1t2/ as
<instrument_number>.js
(<instrument_number> = <bank> * <preset>).
The command %%soundfont
changes the default sound font to
In my site, the soundfonts are stored in the directory
http://moinejf.free.fr/js/sf2/.
(the file sf.sh
is a shell script used to build the .js files
from the .sf2 files)
Example:
X:1 M:6/8 L:1/8 Q:3/8=60 K:Em %%MIDI program 56 % GM Trumpet %%MIDI chordprog 78 % GM Whistle %%MIDI gchordon B,|"Em"E2G "D"FGA|"G"G2F "C"E2G|"Bm"F2E "D"DEF|"Em"E3|]
Reload this file clicking below and change the soundfont to
abc2svg documentation source author - page hosted by Free