-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (45 loc) · 1.85 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
<!DOCTYPE html>
<html>
<head>
<title>Piano Scribe</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.jsdelivr.net/npm/@magenta/[email protected]"></script>
<script src="app.js" defer></script>
</head>
<body>
<div class="box">
<div class="top">
<div id="modelLoading">
<span>Loading model...</span>
</div>
<div id="modelReady" hidden>
<div id="header_div">
<h2>AUDIO TO MIDI CONVERTER</h2>
</div>
<div id="buttons" onclick="transcribeText()">
<label class="button" onclick="removetext()" id="btnUpload" disabled>
<span class="text">Upload file <input type="file" id="fileInput"></span></span>
<span class="loading">Transcribing the file...</span>
</label>
</div>
<div id="footer">
Please upload a .wav file
</div>
</div>
<div id="done" hidden>
<h2>Done Transcribing!</h2>
</div>
<div id="transcribingMessage" hidden>
Longer audio takes a fair bit to transcribe, and will make your browser sluggish. Please hold while
your robots are hard at work...
<div class="container" id="container" hidden>
<canvas id="canvas"></canvas>
</div>
</div>
<button class="button save" onclick="saveMidi(event)" id="saveBtn" hidden>Save MIDI</button>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/1.3.8/FileSaver.min.js" defer></script>
</body>
</html>