-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (64 loc) · 2.95 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>RNN Composer</title>
<meta name="description" content="Generate and play music with a recurrent neural network running in the browser.">
<meta name="keywords" content="Generate and play music with a recurrent neural network running in the browser.">
<meta name="author" content="ekzhang">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<!-- Material Design Lite -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header mdl-layout__header--primary mdl-layout__header--scroll">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">RNN for Music Composition</span>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation">
<button class="mdl-button mdl-js-button mdl-button--light" id="download-abc">Save Song</button>
<button class="mdl-button mdl-js-button mdl-button--light" id="download-midi">Download MIDI</button>
<button class="mdl-button mdl-js-button mdl-button--light" onclick="window.location='https://github.com/ekzhang/music-gen'">View on Github</button>
</nav>
</div>
</header>
<main class="mdl-layout__content">
<div class="container">
<h1>music-gen</h1>
<button id="compose" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">
Compose a Piece
</button>
<div id="loading-container" style="display: none">
<h4 id="loading-message"></h4>
<div id="loading-bar" class="mdl-progress mdl-js-progress mdl-progress--indeterminate"></div>
</div>
<div class="output-container">
<div id="sheet-music" class="mdl-shadow--3dp"></div>
<div id="midi-music"></div>
</div>
</div>
</main>
<footer class="mdl-mini-footer">
<ul class="mdl-mini-footer__link-list">
<li>Created by <a class="mdl-color-text--grey-600" href="https://github.com/ekzhang">Eric Zhang</a>.</li>
</ul>
</footer>
</div>
<!-- Fix for Safari -->
<script type="text/javascript">
window.AudioContext = window.AudioContext || webkitAudioContext;
</script>
<!-- abcjs -->
<script src="https://cdn.jsdelivr.net/gh/paulrosen/abcjs@v5.4.2/bin/abcjs_midi_5.4.2-min.js"></script>
<!-- abc2midi -->
<script src="https://cdn.jsdelivr.net/gh/skooter500/abc2midi-js@dc2fdc0/abc2midi.js"></script>
<!-- Main javascript file -->
<script src="index.js"></script>
</body>
</html>