-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
193 lines (193 loc) · 5.06 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" id="viewport" />
<title>音声分析</title>
<link rel="stylesheet" type="text/css" href="./index.css" />
</head>
<body>
<div>
<form name="main">
<details class="fieldsets" id="fieldsets">
<summary>設定</summary>
<fieldset>
<legend>開始</legend>
<fieldset class="div" id="fieldset-mode">
<div>
<label>
<input type="radio" name="mode" value="0" checked />
無効
</label>
</div>
<div>
<label>
<input type="radio" name="mode" value="1" />
録音:
</label>
<span id="span-record">-</span>
</div>
<div>
<label>
<input type="radio" name="mode" value="2" />
再生:
</label>
<input type="file" name="open" accept="audio/*,video/*" />
</div>
</fieldset>
<div>
<label>
<input type="checkbox" name="eq-enabled" />
グラフィック イコライザ
</label>
<span id="span-eq">
<input type="button" name="eq-reset" class="eq-reset"
value="リセット" />
</span>
<div class="eq" id="div-eq">
<span class="eq-group">
<label>
<input type="radio" name="eq-group" value="0" checked />
別々
</label>
<label>
<input type="radio" name="eq-group" value="1" />
緩く
</label>
<label>
<input type="radio" name="eq-group" value="2" />
堅く
</label>
</span>
<div class="eq-sliders" id="div-sliders"></div>
</div>
</div>
</fieldset>
<fieldset class="labels">
<legend>FFT</legend>
<fieldset class="div" id="fieldset-fft">
<label>
周波数:
<select name="fft-rate">
<option>3000</option>
<option>4000</option>
<option>6000</option>
<option>8000</option>
<option>11025</option>
<option>12000</option>
<option selected>16000</option>
<option>22050</option>
<option>24000</option>
<option>32000</option>
<option>44100</option>
<option>48000</option>
</select>
Hz
</label>
<label>
サイズ:
<select name="fft-size">
<option>32</option>
<option>64</option>
<option>128</option>
<option>256</option>
<option>512</option>
<option>1024</option>
<option>2048</option>
<option selected>4096</option>
<option>8192</option>
<option>16384</option>
<option>32768</option>
</select>
</label>
<label>
平滑化:
<input type="number" name="fft-stc" class="text"
step="0.05" min="0" max="1" value="0.2" />
</label>
</fieldset>
<label>
分析範囲:
<select name="option-fs">
<option>3000</option>
<option>4000</option>
<option>6000</option>
<option>8000</option>
<option>11025</option>
<option>12000</option>
<option selected>16000</option>
<option>22050</option>
<option>24000</option>
<option>32000</option>
<option>44100</option>
<option>48000</option>
</select>
Hz
</label>
</fieldset>
<fieldset class="labels" id="fieldset-constraints">
<legend>入力</legend>
<label>
デバイス:
<select name="constraints-device" class="device"></select>
</label>
</fieldset>
<p class="p">
<label>
<input type="checkbox" name="log" /> 対数
</label>
<span>
<input type="range" name="min" class="reverse"
step="10" min="-40" max="200" value="130" title="最小" /><!--
--><input type="range" name="max"
step="10" min="-190" max="50" value="0" title="最大" />
<span id="text-min">#text</span> ~
<span id="text-max">#text</span> dB
</span>
<span class="save">
<input type="button" name="save" value="保存" />
<input type="button" name="delete" value="削除" />
</span>
</p>
<hr />
</details>
<p class="player" id="p-player"></p>
<p>
<input type="button" name="start" value="開始" />
<label>
次数:
<input type="range" name="order" min="0" max="32" value="12" />
<span id="text-order">#text</span>
</label>
<span>
検出:
<label>
<input type="radio" name="detect" value="0" checked />求根
</label>
<label>
<input type="radio" name="detect" value="1" />極値
</label>
</span>
</p>
</form>
<div class="container" id="container">
<div class="main">
<canvas width="600" height="300" id="canvas-fft"></canvas>
<canvas width="600" height="300" id="canvas-spc"></canvas>
</div><!--
--><div class="sub">
<canvas width="300" height="225" id="canvas-f"></canvas><!--
--><canvas width="300" height="225" id="canvas-s"></canvas>
</div>
</div>
</div>
<script type="text/javascript" src="./script/va.js"></script>
<script type="text/javascript" src="./script/plot.js"></script>
<script type="text/javascript" src="./script/main.js"></script>
<script type="text/javascript" src="./index.js"></script>
</body>
</html>