-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
123 lines (112 loc) · 4.04 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<html>
<head>
<meta charset="utf-8">
<title>Pitch tracker</title>
<link rel="stylesheet" type="text/css" href="ampitch.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script type="text/javascript" src="AudioContextMonkeyPatch.js"></script>
<script type="text/javascript" src="fxauto.min.js"></script>
<script type="text/javascript" src="script.js"></script>
<style>
body {
-webkit-user-select: none;
}
</style>
</head>
<body onload="initialise()" onresize="doresize()" oncontextmenu="return false;" onkeydown="dokey(event)"
style="overflow:hidden">
<div id="menubar">
<div class="controls">
<span class="menubutton" onclick="doRun()" id="runbutton">Run</span>
<span class="menubutton" onclick="doPause()" id="runbutton">Pause</span>
<span class="menubutton" onclick="doConfig()" ;>Configure</span>
</div>
<span class="status">Getting ready...</span>
</div>
<div id="main">
<canvas class="panel" id="cnv"></canvas>
</div>
<!-- Screen overlay mask -->
<div id="mask" class="background" style="visibility:hidden"></div>
<!-- Configuration File Dialog -->
<div id="configdlg" class="modal" style="visibility:hidden">
<table border="0" cellpadding="3" cellspacing="3" width="100%">
<tr>
<td colspan="3">
<h3>
<center>Configuration</center>
</h3>
</td>
</tr>
<tr>
<td class="prompt">Minimum Fx (Hz)</td>
<td><input class="inputfield" type="text" id="fxmin"></td>
<td rowspan="5">
<p align="center">Settings<br>
<button class="button" onclick="onsetfx(1)">Man</button><br>
<button class="button" onclick="onsetfx(2)">Woman</button><br>
<button class="button" onclick="onsetfx(3)">Child</button>
</p>
</td>
</tr>
<tr>
<td class="prompt">Low Fx (Hz)</td>
<td><input class="inputfield" type="text" id="fxlow"></td>
</tr>
<tr>
<td class="prompt">High Fx (Hz)</td>
<td><input class="inputfield" type="text" id="fxhigh"></td>
</tr>
<tr>
<td class="prompt">Maximum Fx (Hz)</td>
<td><input class="inputfield" type="text" id="fxmax"></td>
</tr>
<tr>
<td class="prompt">Display Time (s)</td>
<td><input class="inputfield" type="text" id="disptime"></td>
</tr>
<tr>
<td class="prompt">Horizontal Scroll</td>
<td><input class="inputfield" type="radio" id="scroll1" name="scroll">On <input class="inputfield"
type="radio" id="scroll0" name="scroll">Off <input class="inputfield" type="radio" id="scroll2"
name="scroll">One shot</td>
</tr>
<tr>
<td class="prompt">Amplitude Display</td>
<td><input class="inputfield" type="radio" id="amplitude1" name="amplitude">On <input class="inputfield"
type="radio" id="amplitude0" name="amplitude">Off</td>
</tr>
<td class="prompt">Hot lava</td>
<td><input class="inputfield" type="text" id="warnOnMin"></td>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3">
<center><button class="button" onclick="onconfigdlg()">OK</button><button class="button"
onclick="cancel('configdlg')">Cancel</button></center>
</td>
</tr>
</table>
</div>
<!-- About Dialog -->
<div id="aboutdlg" class="modal" style="visibility:hidden">
<table border="0" cellpadding="3" cellspacing="3" width="100%">
<tr>
<td>
<h3>AMPITCH</h3>
<p>Real-time Amplitude & Pitch Display
<p>Version 1.2
<p>© 2016 Mark Huckvale
<p>University College London
<p>May 2016
<p><a href="http://www.speechandhearing.net/">www.speechandhearing.net</a>
</td>
</tr>
<tr>
<td><button class="button" onclick="cancel('aboutdlg')">OK</button></td>
</tr>
</table>
</div>
</body>
</html>