forked from rism-digital/verovio.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhello-pae-world.html
27 lines (27 loc) · 978 Bytes
/
hello-pae-world.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
---
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Hello PAE World!</title>
<script src="{{ site.baseurl }}/javascript/latest/verovio-toolkit-light.js" type="text/javascript" ></script>
</head>
<body>
<!-- The div where we are going to insert the SVG -->
<div id="output"/>
<script type="text/javascript">
/* The Plaine & Easie code to be rendered */
data = "@clef:G-2\n\
@keysig:xFCGD\n\
@timesig:3/8\n\
@data:'6B/{8B+(6B''E'B})({AFD})/{6.E3G},8B-/({6'EGF})({FAG})({GEB})/";
/* Create the Verovio toolkit instance */
var vrvToolkit = new verovio.toolkit();
/* Render the data and insert it as content of the #output div */
document.getElementById("output").innerHTML = vrvToolkit.renderData(
data,
{ inputFormat: 'pae' }
);
</script>
</body>
</html>