-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
43 lines (34 loc) · 978 Bytes
/
index.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<title>Staff.js</title>
<!-- CSS -->
<link rel="stylesheet" href="css/staff.css" />
<!-- JavaScript -->
<script src="js/JZZ.js"></script>
<script src="js/JZZ.input.Kbd.js"></script>
<script src="js/staff.js"></script>
</head>
<body>
<header>
<a class="button" href="https://github.com/instrumentbible/staff.js/#readme">GitHub</a>
<a class="button" href="https://github.com/instrumentbible/staff.js/wiki/#wiki-body">Docs</a>
<a href="https://github.com/instrumentbible/staff.js#readme"><h1>staff.js 🎼</h1></a>
</header>
<div id="staffDiv" class="staff"></div>
<script>
// options for staff
var options = {
id: "myStaff",
at: "staffDiv",
clef: "treble",
accidental: "sharp",
color: "#000000"
}
// create a new staff
var myStaff = new Staff(options);
// set notes (C major chord)
myStaff.setNotes([60,64,67]);
//console.log(myStaff.getNotes());
</script>
</body>