-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
33 lines (26 loc) · 1011 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
<!DOCTYPE html>
<html>
<head>
<title>A few scales on the fretboard</title>
</head>
<body>
<h1>A few scales</h1>
<p>
<canvas id="theCanvas" width="1000" height="90" style="border:0px solid #000000;">
Does yout browser support the canvas tag?
</canvas>
</p>
<script src="js/scales.js"> </script>
<script >
const fretboard = new Fretboard(document.getElementById('theCanvas'));
// // major scale at thid fret, spanning two octaves
fretboard.drawScale(scale.major, 2, 6, 15);
// // major scale at eighth fret, starting on fourth string
// fretboard.drawScale(scale.major, 7, 4);
// // dorian scale at twelvth fret
fretboard.drawScale(scale.dorian, 12);
// // hexatonic scale at eighteenth fret starting on A string
fretboard.drawScale(scale.hexatonic, 18, 5, 7);
</script>
</body>
</html>