JSPDF: Difference between revisions

Find traditional instrumental music
No edit summary
No edit summary
Line 1: Line 1:
<abc float="left">
<html xmlns="http://www.w3.org/1999/xhtml">
%abc-2.0
<head>
%
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
% PAGE FORMAT
<script src="../js/abc2svg-1.js" type="text/javascript"></script>
%
<script src="../js/abcemb-1.js" type="text/javascript"></script>
%%pagewidth      21cm
<script src="../js/play-1.js" type="text/javascript"></script>
%%pageheight    29.7cm
<style type="text/css">
%%topmargin      1.5cm
svg {display:block}
%%botmargin      1.5cm
</style>
%%leftmargin    1.5cm
<title>abc2svg abcemb-1.js example</title>
%%rightmargin    1.5cm
</head>
%%topspace      0cm
<body bgcolor="#faf0e6">
%%footer " $T, pag.$P "
 
%
<h3>abcemb-1.js example</h3>
% FONTS
 
%
<p>
%%titlefont      Times-Bold 28
This XHTML document contains a ABC tune ('Au clair de la lune').
%%subtitlefont  Times-Bold 22
</p>
%%composerfont  Times-Italic 14
<p>
%%vocalfont      Times-Bold 14
To render this tune, it includes the abc2svg core
%%annotationfont Times-Bold_Italic 14
(script <code>abc2svg-1.js</code>)
%%footerfont    Times-Roman 12
and the script <code>abcemb-1.js</code> which scans the document and replaces
%
the ABC sequence(s) by SVG images.
% SPACES
</p>
%
<p>
%%titlespace    0.5cm
For playing the tune, this document simply includes the script
%%subtitlespace  0.1cm
<code>play-1.js</code>. Check it by clicking the score!
%%staffsep      90pt
</p>
%%sysstaffsep    36pt
 
%%musicspace    0.2cm
%abc-2.2
%%vocalspace    23pt
%%pagewidth 12cm
%%measurebox    1
%%bgcolor white
%%measurenb      0
%%topspace 0
%%pagescale      0.8
%%composerspace 0
%%pagescale 0.78
%%leftmargin 0.8cm
%%rightmargin 0.8cm
X:1
X:1
T:Old Woman Tossed Up in a Blanket, Headington
T:Au clair de la lune
M:6/8
C:Unknown
L:1/8
M:C
A:Headington
L:1/4
P:A2(BC)3
Q:1/4=140
K:G
K:C
Q:320
cccd | e2d2 | cedd | c4 :|
P:A
dddd | A2A2 | dcBA | G4 |
d|GAB cBc|edc BAG|cBA  d2c|B>AB G2 ||
cccd | e2d2 | cedd | c4 ||
P:B
 
d|efg efg|efg afd|d>ed def|gfe  dBG|
</body>
GAB cBc|edc BAG|cBA  d2c|B>AB G2 ||
</html>
P:C
d|g3  c3 |efg B3 |cBA  d2c|B>AB G2 ||
% End of file Ave_Maria_Arcadelt.abc
</abc>

Revision as of 12:47, 19 May 2017

<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <script src="../js/abc2svg-1.js" type="text/javascript"></script> <script src="../js/abcemb-1.js" type="text/javascript"></script> <script src="../js/play-1.js" type="text/javascript"></script> <style type="text/css"> svg {display:block} </style> <title>abc2svg abcemb-1.js example</title> </head> <body bgcolor="#faf0e6">

<h3>abcemb-1.js example</h3>

<p> This XHTML document contains a ABC tune ('Au clair de la lune'). </p> <p> To render this tune, it includes the abc2svg core (script <code>abc2svg-1.js</code>) and the script <code>abcemb-1.js</code> which scans the document and replaces the ABC sequence(s) by SVG images. </p> <p> For playing the tune, this document simply includes the script <code>play-1.js</code>. Check it by clicking the score! </p>

%abc-2.2 %%pagewidth 12cm %%bgcolor white %%topspace 0 %%composerspace 0 %%leftmargin 0.8cm %%rightmargin 0.8cm X:1 T:Au clair de la lune C:Unknown M:C L:1/4 Q:1/4=140 K:C cccd | e2d2 | cedd | c4 :| dddd | A2A2 | dcBA | G4 | cccd | e2d2 | cedd | c4 ||

</body> </html>