-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (31 loc) · 1.27 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
<!DOCTYPE html><html lang="en"><head>
<script src="p5.js"></script>
<script src="p5.sound.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8">
</head>
<body>
<p> Press Enter to start oscillator, Press any key to play a note </p>
<h1> Waves </h1>
<div id="carriers" class="container">
<div>
<!---Frequency Slider-->
<input min="1" max="5000" value="440" id="freq" type="range">
<label for="freq" id="freqLabel"> 440 Hz </label>
<!---Volume Slider-->
<input min="0" max="100" value="0" id="vol" type="range">
<label for="vol" id="volLabel"> 0% </label>
<!---Shape Slider-->
<input min="0" max="3" value="0" id="shape" type="range">
<label for="shape" id="shapeLabel"> Sine </label>
<!---Mute Button-->
<button id="mute"> Mute </button>
<br><br>
</div>
</div>
<!--Buttons--->
<button id="addWave" onclick="addWave()"> Add Wave </button>
<button id="removeWave" onclick="removeWave()"> Remove Wave </button>
<!--Where our actual code runs-->
<script src="sketch.js"></script>
</body></html>