-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (47 loc) · 1.75 KB
/
index.html
File metadata and controls
52 lines (47 loc) · 1.75 KB
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
44
45
46
47
48
49
50
51
52
<!doctype html>
<html lang="en">
<head>
<title>Welcome, cottyard</title>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.1.min.js"></script>
<script src="./js/MIDI/AudioDetect.js" type="text/javascript"></script>
<script src="./js/MIDI/LoadPlugin.js" type="text/javascript"></script>
<script src="./js/MIDI/Plugin.js" type="text/javascript"></script>
<script src="./js/MIDI/Player.js" type="text/javascript"></script>
<script src="./js/Window/DOMLoader.XMLHttp.js" type="text/javascript"></script>
<script src="./inc/Base64.js" type="text/javascript"></script>
<script src="./inc/base64binary.js" type="text/javascript"></script>
<script src="src/clock.js"></script>
<script src="lib/util.js"></script>
<script src="lib/keyboard.js"></script>
<script src="lib/musiculator.js"></script>
<script src="lib/piano.js"></script>
<script src="lib/score.js"></script>
<script src="lib/autoplayer.js"></script>
</head>
<body onLoad="start_client();">
<canvas id="clock" height="140" width="140"></canvas>
<canvas id="musiculator" height="500" width="400"></canvas>
<canvas id="piano" height="500" width="650"></canvas>
<textarea id="score" rows="10" cols="60"></textarea>
<textarea id="tempo" rows="1" cols="5"></textarea>
<button onclick="
autoplayer.stop()
instructions = score.compile();
$('#instruction').val(instructions);
autoplayer.play(instructions);
">compile & play</button>
<button onclick="
score.show_next_melody()
">next melody</button>
<textarea id="instruction" rows="6" cols="100"></textarea>
<script>
function start_client() {
MIDI.loadPlugin(function(){
clock();
musiculator.keys();
piano.piano();
});
}
</script>
</body>
</html>