-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (80 loc) · 2.08 KB
/
index.html
File metadata and controls
85 lines (80 loc) · 2.08 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CREPE Test Tone Pitch Detection</title>
<style>
body {
font-family: system-ui, -apple-system, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
.title {
font-size: 36px;
text-align: center;
margin-bottom: 20px;
}
.pitch-display {
font-size: 48px;
font-weight: bold;
text-align: center;
margin: 40px 0;
}
.note-name {
font-size: 24px;
text-align: center;
margin-bottom: 20px;
}
#pitchCanvas {
width: 100%;
height: 200px;
border: 1px solid #ccc;
}
#confidenceBar {
height: 20px;
background-color: #4CAF50;
width: 0%;
margin-top: 10px;
}
.confidence-container {
width: 100%;
background-color: #ddd;
}
button {
display: block;
margin: 20px auto;
padding: 10px 20px;
font-size: 16px;
}
.controls-container {
margin: 20px 0;
padding: 15px;
background-color: #f5f5f5;
border-radius: 8px;
}
.frequency-slider {
width: 80%;
margin: 10px 0;
}
.frequency-display {
font-size: 18px;
font-weight: bold;
margin: 5px 0;
}
</style>
</head>
<body>
<h1 class="title">CREPE Test Tone Pitch Detection</h1>
<button id="startButton">Start Test Tone</button>
<div class="pitch-display" id="pitchDisplay">---.-- Hz</div>
<div class="note-name" id="noteName">--</div>
<div class="confidence-container">
<div id="confidenceBar"></div>
</div>
<canvas id="pitchCanvas"></canvas>
<script src="crepe_wasm.js"></script>
<script src="app.js"></script>
</body>
</html>