-
Notifications
You must be signed in to change notification settings - Fork 1
/
audiotest.html
59 lines (59 loc) · 1.76 KB
/
audiotest.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
<html>
<head>
<script type="text/javascript" src="/audiotest.js"></script>
<style>
section {
padding: 5%;
border: 1px solid black;
}
</style>
</head>
<body>
<section>
<label for="instruments">Choose an instrument:</label>
<select id="instruments"></select>
<br/>
<label for="octave">Choose an octave:</label>
<select id="octave">
<option value="1">1</option>
<option value="2">2</option>
<option value="3" selected>3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
<br/>
<button id="playScale">Play a (chromatic) scale</button>
<div id="scaleInfo"></div>
<br/>
<label for="pitch">Choose a pitch:</label>
<select id="pitch">
<option value="C">C</option>
<option value="C#">C#</option>
<option value="D">D</option>
<option value="D#">D#</option>
<option value="E">E</option>
<option value="F">F</option>
<option value="F#">F#</option>
<option value="G">G</option>
<option value="G#">G#</option>
<option value="A">A</option>
<option value="A#">A#</option>
<option value="B">B</option>
</select>
<br/>
<label for="overtone">and an overtone:</label>
<select id="overtone">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<br/>
<button id="playOvertone">Play this note and overtone</button>
<div id="overtoneInfo"></div>
</section>
</body>
</html>