-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.html
More file actions
51 lines (46 loc) · 1.57 KB
/
Copy pathmain.html
File metadata and controls
51 lines (46 loc) · 1.57 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>String Vibrations</title>
<script src="https://cdn.jsdelivr.net/npm/p5@1.0.0/lib/p5.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@2.0.0/dist/tf.min.js"></script>
<script src="stringVibration.js"></script>
</head>
<body>
<div id="stringDiv"></div>
<p>
<input type="checkbox" value="show" class="checkbox" checked id="showModes">
<label>Show modes</label>
<br>
<div id="modesOption">
<input type="checkbox" value="show" class="checkbox" checked id="showModesMotion">
<label>Show modes during vibration</label>
</div>
</p>
<div id="sliders">
<table>
<colgroup>
<col span="1" style="width: 10%;">
<col span="1" style="width: 10%;">
<col span="1" style="width: 80%;">
</colgroup>
<tr>
<td class="descr">N</td>
<td class="val"><label id="Ns"></label></td>
<td><input type="range" min="1" max="10" value="3" class="slider" id="numFourier"></td>
</tr>
<tr>
<td class="descr">v</td>
<td class="val"><label id="v"></label></td>
<td><input type="range" min="0.1" max="9.9" value="2" step="0.1" class="slider" id="velocity"></td>
</tr>
<tr>
<td class="descr">c</td>
<td class="val"><label id="c"></label></td>
<td><input type="range" min="0" max="0.02" value="0.005" step="0.001" class="slider" id="damping"></td>
</tr>
</table>
</div>
</body>
</html>