-
Notifications
You must be signed in to change notification settings - Fork 1
/
midijs-demo.html
48 lines (40 loc) · 1.19 KB
/
midijs-demo.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
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
<title>MIDI.js Demo</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!-- polyfill -->
<script src="vendor/inc/shim/Base64.js"></script>
<script src="vendor/inc/shim/Base64binary.js"></script>
<script src="vendor/inc/shim/WebAudioAPI.js"></script>
<!-- midi.js package -->
<script src="vendor/js/midi/audioDetect.js"></script>
<script src="vendor/js/midi/gm.js"></script>
<script src="vendor/js/midi/loader.js"></script>
<script src="vendor/js/midi/plugin.audiotag.js"></script>
<script src="vendor/js/midi/plugin.webaudio.js"></script>
<script src="vendor/js/midi/plugin.webmidi.js"></script>
<!-- utils -->
<script src="vendor/js/util/dom_request_xhr.js"></script>
<script src="vendor/js/util/dom_request_script.js"></script>
<script src="midi-support.js"></script>
<script src="midi-ui.js"></script>
<script>
window.onload = function () {
loadMidi("acoustic_grand_piano");
initMidiUI();
}
</script>
</head>
<body>
<div id="keyboard">
<button id="do">Do</button>
<button id="re">Re</button>
<button id="mi">Mi</button>
<button id="clear">Clear</button>
<button id="preview">Preview</button>
</div>
<div id=song>
</div>
</body>
</html>