-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
executable file
·40 lines (37 loc) · 1.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Tone.js Starter</title>
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
<link rel="stylesheet" href="./css/normalize.css">
<link rel="stylesheet" href="./build/css/style.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/tone/13.0.1/Tone.min.js"></script>
<script src="./build/js/knightrider.min.js" defer></script>
</head>
<body>
<h1>Tone.js Starter</h1>
<p>Click anywhere to play sound.</p>
<div class="boxes">
<div class="bassbox box">Bass</div>
<div class="kickbox box">Kick</div>
<div class="snarebox box">Snare</div>
<div class="pizzbox box">Pizz</div>
<div class="highhatbox box">HH</div>
</div>
<form id="music-controls" class="music-controls">
<label>BPM
<input id="bpm-range" type="range" min="20" max="80" value="50">
</label>
<label>Swing
<input id="swing-range" type="range" min="0" max="1" value="0">
</label>
<label>Filter
<input id="filter-range" type="range" min="0" max="2200" value="800" step="1">
</label>
<input id="play-btn" type="button" value="play">
</form>
</body>
</html>