-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (62 loc) · 2.5 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Note Generator</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100&display=swap" rel="stylesheet">
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.8.49/Tone.js"></script> -->
<script src="Tone.js"></script>
</head>
<body>
<div class="main-container">
<div class="note-display greeting">
<p>
Select notes and press Start!
</p>
</div>
<div class="control-buttons">
<button class="start-button">Start</button>
<button class="stop-button">Stop</button>
<div class="bpm-slider">
<input type="range" id="bpm" name="bpm" min="0" max="10" step=1>
<div class="slider-info-container">
<div class="checkbox-container">
<label class="switch">
<input id="switch-input" type="checkbox">
<span class="slider round"></span>
</label>
<div id="switch-position">BPM</div>
</div>
<label id="bpm-label" for="BPM">BPM: 180</label>
</div>
</div>
<div class="error-message">Error</div>
</div>
<div class="note-selection">
<div class="black-keys">
<button data-octave="4"class="note-button"><div>C#</div></button>
<button data-octave="4"class="note-button"><div>D#</div></button>
<button data-octave=""class="note-button" style="visibility: hidden;"><div>C#</div></button>
<button data-octave="4"class="note-button"><div>F#</div></button>
<button data-octave="4"class="note-button"><div>G#</div></button>
<button data-octave="4"class="note-button"><div>A#</div></button>
</div>
<div class="white-keys">
<button data-octave="4" class="note-button"><div>C</div></button>
<button data-octave="4"class="note-button"><div>D</div></button>
<button data-octave="4"class="note-button"><div>E</div></button>
<button data-octave="4"class="note-button"><div>F</div></button>
<button data-octave="4"class="note-button"><div>G</div></button>
<button data-octave="4"class="note-button"><div>A</div></button>
<button data-octave="4"class="note-button"><div>B</div></button>
</div>
<!-- <button class="more-octaves-button">
Click here to get more Octaves
</button> -->
</div>
</div>
<script src="script.js"></script>
</body>
</html>