-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (56 loc) · 1.48 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
<!DOCTYPE html>
<head>
<link rel="icon" type="image/png" href="data/favicon.png" />
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap"
rel="stylesheet"
/>
<style>
body {
font-family: 'Open Sans', sans-serif;
}
.hidden {
display: none;
}
* {
image-rendering: pixelated;
}
</style>
<script type="module" src="./dist/app.js"></script>
</head>
<body>
<div class="hidden">
<canvas id="bar" width="12" height="32"></canvas>
<canvas id="grid" width="12" height="8"></canvas>
<svg xmlns="http://www.w3.org/2000/svg" id="s" height="256" width="12">
<defs>
<pattern id="pt" width="12" height="8" patternUnits="userSpaceOnUse">
<image id="s-grid"></image>
</pattern>
<mask id="mask">
<rect fill="url(#pt)" width="12" height="256"></rect>
</mask>
<image id="s-bar" height="256"></image>
</defs>
<use href="#s-bar" mask="url(#mask)"></use>
</svg>
<img id="ii" />
</div>
<h3>Frequency analyzer sample</h3>
<div>
<canvas id="osc" width="768" height="256"></canvas>
</div>
<div>
<audio
id="audio"
controls
src="data/53754_Kenotron__BURATINO__remixed.mp3"
loop
controlsList="nodownload"
></audio>
<span>
Tune by
<a href="https://zxart.ee/rus/avtory/k/kenotron">Kenotron</a>
</span>
</div>
</body>