-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (76 loc) · 2.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
<title>Web Audio API Keyboard</title>
<link rel="stylesheet" href="./src/index.css" />
<script type="module" src="/src/wc-virtual-keyboard.ts"></script>
</head>
<style>
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
body {
margin: 1rem auto;
display: flex;
flex-direction: column;
align-items: flex-start;
min-width: 320px;
min-height: 100vh;
max-width: 700px;
width: 90%;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
}
</style>
<body>
<section>
<h1>About</h1>
<p>This is a simple keyboard built with the Web Audio API, RxJS, and Lit.</p>
<p>What's cool is that we are using the <a
href="https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas">OffscreenCanvas</a> to render the
waveforms here!<br>kl;:]You can click and use your keyboard to interact.</p>
</section>
<section>
<h1>Keyboard</h1>
<wc-virtual-keyboard></wc-virtual-keyboard>
</section>
<section>
<h1>Source Code</h1>
<a href="https://github.com/tronicboy1/wc-virtual-keyboard">GitHub</a>
</section>
<section>
<h1>Accredation</h1>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Visualizations_with_Web_Audio_API">
Visualizations with Web Audio API</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Simple_synth">
Example and tutorial: Simple synth keyboard</a></li>
</ul>
</section>
</body>
</html>