forked from cwilso/PitchDetect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (76 loc) · 2.09 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
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.8">
</head>
<body style="font-family: monospace">
<script src="js/pitchdetect.js"></script>
<select id="fft">
<option value=1024>1024</option>
<option value=2048>2048</option>
<option value=4096>4096</option>
</select>
<select id="temperament">
<option value="valotti">Vallotti syntonic</option>
<option value="kirnberger_1">Kirnberger I</option>
<option value="kirnberger_2">Kirnberger II</option>
<option value="kirnberger_3">Kirnberger III</option>
<option value="equal">Equal</option>
</select>
<p><button onclick="startPitchDetect();">Start</button></p>
<div><span id="vol">--</span> Signal</div>
<div><span id="freq">--</span> Hz</div>
Deviation in Cent:
<table>
<tr>
<td>C</td>
<td><span class="pitch", id="c">--</span></td>
</tr>
<tr>
<td>Cs</td>
<td><span class="pitch", id="cs">--</span></td>
</tr>
<tr>
<td>D</td>
<td><span class="pitch", id="d">--</span></td>
</tr>
<tr>
<td>Ds</td>
<td><span class="pitch", id="d">--</span></td>
</tr>
<tr>
<td>E</td>
<td><span class="pitch", id="e">--</span></td>
</tr>
<tr>
<td>F</td>
<td><span class="pitch", id="f">--</span></td>
</tr>
<tr>
<td>Fs</td>
<td><span class="pitch", id="f">--</span></td>
</tr>
<tr>
<td>G</td>
<td><span class="pitch", id="g">--</span></td>
</tr>
<tr>
<td>Gs</td>
<td><span class="pitch", id="gs">--</span></td>
</tr>
<tr>
<td>A</td>
<td><span class="pitch", id="a">--</span></td>
</tr>
<tr>
<td>As</td>
<td><span class="pitch", id="as">--</span></td>
</tr>
<tr>
<td>B</td>
<td><span class="pitch", id="b">--</span></td>
</tr>
</table>
<!-- <canvas id="waveform" width="512" height="256"></canvas> -->
</body>
</html>