forked from jcrunge/solfie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetector.html
226 lines (211 loc) · 8.8 KB
/
detector.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Detector de Entrada/Audio</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<script>
var promisifiedOldGUM = function (constraints) {
// First get ahold of getUserMedia, if present
var getUserMedia = (navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia);
// Some browsers just don't implement it - return a rejected promise with an error
// to keep a consistent interface
if (!getUserMedia) {
return Promise.reject(new Error('getUserMedia is not implemented in this browser'));
}
// Otherwise, wrap the call to the old navigator.getUserMedia with a Promise
return new Promise(function (resolve, reject) {
getUserMedia.call(navigator, constraints, resolve, reject);
});
}
// Older browsers might not implement mediaDevices at all, so we set an empty object first
if (navigator.mediaDevices === undefined) {
navigator.mediaDevices = {};
}
// Some browsers partially implement mediaDevices. We can't just assign an object
// with getUserMedia as it would overwrite existing properties.
// Here, we will just add the getUserMedia property if it's missing.
if (navigator.mediaDevices.getUserMedia === undefined) {
navigator.mediaDevices.getUserMedia = promisifiedOldGUM;
}
var constraints = {
audio: true
, video: false
};
navigator.mediaDevices.getUserMedia(constraints)
.catch(function (err) {
console.log(err.name + ": " + err.message);
});
</script>
</head>
<body>
<span class="glyphicon glyphicon-music"></span><span class="glyphicon-class">NOTA: <span class="nota glyphicon-class">--</span></span>
<h2>Notas</h2>
<div class="container">
<div class="row">
<div class="col-lg-10 col-md-12">
<table class="table table-bordered">
<tbody>
<tr>
<td width="19" align="left">Octava
</td>
<td width="41" align="center"><b>C</b></td>
<td width="41" align="center"><b>C#</b></td>
<td width="41" align="center"><b>D</b>
</td>
<td width="41" align="center"><b>Eb</b></td>
<td width="41" align="center"><b>E</b></td>
<td width="41" align="center"><b>F</b>
</td>
<td width="41" align="center"><b>F#</b></td>
<td width="41" align="center"><b>G</b></td>
<td width="41" align="center"><b>G#</b>
</td>
<td width="41" align="center"><b>A</b></td>
<td width="41" align="center"><b>Bb</b></td>
<td width="41" align="center"><b>B</b></td>
</tr>
<tr>
<td><b>0</b></td>
<td>16.35</td>
<td>17.32</td>
<td>18.35</td>
<td>19.45</td>
<td>20.60</td>
<td>21.83</td>
<td>23.12</td>
<td>24.50</td>
<td>25.96</td>
<td>27.50</td>
<td>29.14</td>
<td>30.87</td>
</tr>
<tr>
<td><b>1</b></td>
<td>32.70</td>
<td>34.65</td>
<td>36.71</td>
<td>38.89</td>
<td>41.20</td>
<td>43.65</td>
<td>46.25</td>
<td>49.00</td>
<td>51.91</td>
<td>55.00</td>
<td>58.27</td>
<td>61.74</td>
</tr>
<tr>
<td><b>2</b></td>
<td>65.41</td>
<td>69.30</td>
<td>73.42</td>
<td>77.78</td>
<td>82.41</td>
<td>87.31</td>
<td>92.50</td>
<td>98.00</td>
<td>103.8</td>
<td>110.0</td>
<td>116.5</td>
<td>123.5</td>
</tr>
<tr>
<td><b>3</b></td>
<td>130.8</td>
<td>138.6</td>
<td>146.8</td>
<td>155.6</td>
<td>164.8</td>
<td>174.6</td>
<td>185.0</td>
<td>196.0</td>
<td>207.7</td>
<td>220.0</td>
<td>233.1</td>
<td>246.9</td>
</tr>
<tr>
<td><b>4</b></td>
<td>261.6</td>
<td>277.2</td>
<td>293.7</td>
<td>311.1</td>
<td>329.6</td>
<td>349.2</td>
<td>370.0</td>
<td>392.0</td>
<td>415.3</td>
<td>440.0</td>
<td>466.2</td>
<td>493.9</td>
</tr>
<tr>
<td><b>5</b></td>
<td>523.3</td>
<td>554.4</td>
<td>587.3</td>
<td>622.3</td>
<td>659.3</td>
<td>698.5</td>
<td>740.0</td>
<td>784.0</td>
<td>830.6</td>
<td>880.0</td>
<td>932.3</td>
<td>987.8</td>
</tr>
<tr>
<td><b>6</b></td>
<td>1047</td>
<td>1109</td>
<td>1175</td>
<td>1245</td>
<td>1319</td>
<td>1397</td>
<td>1480</td>
<td>1568</td>
<td>1661</td>
<td>1760</td>
<td>1865</td>
<td>1976</td>
</tr>
<tr>
<td><b>7</b></td>
<td>2093</td>
<td>2217</td>
<td>2349</td>
<td>2489</td>
<td>2637</td>
<td>2794</td>
<td>2960</td>
<td>3136</td>
<td>3322</td>
<td>3520</td>
<td>3729</td>
<td>3951</td>
</tr>
<tr>
<td><b>8</b></td>
<td>4186</td>
<td>4435</td>
<td>4699</td>
<td>4978</td>
<td>5274</td>
<td>5588</td>
<td>5920</td>
<td>6272</td>
<td>6645</td>
<td>7040</td>
<td>7459</td>
<td>7902</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>