forked from cwilso/metronome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
19 lines (19 loc) · 1.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width user-scalable=no">
<title>Metronome</title>
<link rel="stylesheet" href="css/main.css">
<script src="http://cwilso.github.io/AudioContext-MonkeyPatch/AudioContextMonkeyPatch.js"></script>
<script src="js/metronome.js"></script>
</head>
<body>
<a href="https://github.com/cwilso/metronome" style="position: absolute; top: -5px; right: 15px;">Fork me on GitHub</a>
<div id="controls">
<div><a class="play" onclick="this.textContent = play();">play</a></div>
<div id="tempoBox">Tempo: <span id="showTempo">120</span>BPM <input id="tempo" type="range" min="30.0" max="160.0" step="1" value="120" style="height: 20px; width: 200px" onInput="tempo = event.target.value; document.getElementById('showTempo').textContent=tempo;"></div>
<div>Resolution:<select onchange="noteResolution = this.selectedIndex;"><option>16th notes<option>8th notes<option>Quarter notes</select></div>
</div>
</body>
</html>