-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (32 loc) · 1000 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
34
35
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CodePen - Web Audio Visualizer w/ MIDI</title>
<script>
let vis;
</script><link rel="stylesheet" href="./style.scss">
</head>
<body>
<!-- partial:index.partial.html -->
<button id="webaudio" class="paused">Web Audio</button>
<div id="tone-content">
<details>
<summary>JSON</summary>
<textarea id="midiJSON" placeholder="Magenta sequence…"></textarea>
</details>
<div id="midiSequence">
<svg id="magenta" version="1.1" viewBox="0 0 1 1"></svg>
</div>
<label id="midiLabel" for="midiFile">
<span>MIDI file</span>
<input id="midiFile" type="file" accept="audio/midi, audio/x-midi">
</label>
<code id="playback"></code>
<code id="score"></code>
</div>
<!-- partial -->
<script src='https://assets.codepen.io/697675/ammo.wasm.js'></script>
<script src='https://cdn.jsdelivr.net/npm/@magenta/[email protected]'></script><script type="module" src="./script.js"></script>
</body>
</html>