-
Notifications
You must be signed in to change notification settings - Fork 28
/
index.html
84 lines (72 loc) · 3.84 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
81
82
83
84
<!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="assets/css/reset.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons" type="text/css">
<link rel="stylesheet" href="https://code.getmdl.io/1.1.3/material.indigo-pink.min.css">
<link rel="stylesheet" href="assets/css/main.css">
<script defer src="https://code.getmdl.io/1.1.3/material.min.js"></script>
<script src="assets/js/monkeypatch.js"></script>
<script src="assets/js/metronome.js"></script>
</head>
<body>
<div class="metronome">
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">The Metronome</span>
</div>
<div class="mdl-layout__header-row">
<button class="mdl-button mdl-demo mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored mdl-shadow--4dp mdl-color--accent" id="add"
onclick="play();">
<i id="play-icon" class="material-icons" role="presentation">play_arrow</i>
<span class="visuallyhidden">Add</span>
</button>
</div>
</header>
<main class="mdl-layout__content">
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--6-col">
<h6 class="mdl-typography--title">Tempo</h6>
<h2 id="bpm" class="mdl-typography--display-4"><output name="bpm" id="bpmOutput">120</output><span class="mdl-typography--subhead"> bpm</span></h2>
<input class="mdl-slider mdl-js-slider" type="range" name="bpm" id="bpmInput" value="120" min="20" max="250" oninput="tempo = event.target.value; bpmOutput.value = bpmInput.value;">
<h6 class="mdl-typography--title">Meter</h6>
<h2 id="bpm" class="mdl-typography--display-2"><output name="count" id="countOutput">4</output><span class="mdl-typography--subhead"> counts</span></h2>
<input class="mdl-slider mdl-js-slider" type="range" name="count" id="countInput" value="4" min="1" max="12" oninput="meter = event.target.value; countOutput.value = countInput.value;">
</div>
<div class="mdl-cell mdl-cell--6-col">
<h6 class="mdl-typography--title">Volumes</h6>
<p>Master</p>
<input class="mdl-slider mdl-js-slider" type="range"
min="0" max="100" value="50" tabindex="0"
oninput="masterVolume = event.target.value / 100;">
<p>Accent</p>
<input class="mdl-slider mdl-js-slider" type="range"
min="0" max="100" value="100" tabindex="0"
oninput="accentVolume = event.target.value / 100;">
<p>Quarter Note</p>
<input class="mdl-slider mdl-js-slider" type="range"
min="0" max="100" value="75" tabindex="0"
oninput="quarterVolume = event.target.value / 100;">
<p>Eighth Note</p>
<input class="mdl-slider mdl-js-slider" type="range"
min="0" max="100" value="0" tabindex="0"
oninput="eighthVolume = event.target.value / 100;">
<p>Sixteenth Note</p>
<input class="mdl-slider mdl-js-slider" type="range"
min="0" max="100" value="0" tabindex="0"
oninput="sixteenthVolume = event.target.value / 100;">
<p>Triplet</p>
<input class="mdl-slider mdl-js-slider" type="range"
min="0" max="100" value="0" tabindex="0"
oninput="tripletVolume = event.target.value / 100;">
</div>
</div>
</main>
</div>
</div>
</body>
</html>