-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
70 lines (67 loc) · 2.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="AY Sir"/>
<title>AY Sir</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2280%22>📻</text></svg>">
<link rel="stylesheet" href="./style.css">
<script src="../kkRows/js/kk-rows.min.js" type="module"></script>
<script src="./js/aysir.js" type="module"></script>
</head>
<body>
<table>
<colgroup>
<col width="1%"/>
<col width="98%"/>
<col width="1%"/>
</colgroup>
<tr> <!-- control -->
<td style="white-space:nowrap;">
<span onclick="AYSir.loadAndPlayNextSong()" title="Play random song">🎰</span>
<!--<span onclick="AYSir.toggleViz()" title="Toggle Visualizer">ᨓ</span>-->
</td>
<td colspan="2">
<span title="Choose your engine :)">
⚙️<select id="EngineSel" onchange="AYSir.setEngine(this.value)">
<option value="lunar">LunarJournal</option>
<option value="ponceto">OlivierPoncet</option>
<option value="ayumi">Ayumi</option>
<option value="gasman">Demozoo</option>
<option value="vecx">Vecx</option>
<!-- <option value="nonameno">CODEF (does not exist yet)</option> -->
</select>
<select id="PanSel" onchange="AYSir.setPan(this.value)" title="Channel panning">
<option value="MONO">MONO (0.5, 0.5, 0.5)</option>
<option value="ABC">ABC (0.25, 0.5, 0.75)</option>
<option value="ACB" selected>ACB (0.25, 0.75, 0.5)</option>
<option value="BAC">BAC (0.5, 0.25, 0.75)</option>
<option value="BCA">BCA (0.75, 0.25, 0.5)</option>
<option value="CAB">CAB (0.5, 0.75, 0.25)</option>
<option value="CBA">CBA (0.75, 0.5, 0.25)</option>
</select>
</span>
🎼<span id="infoTxt"></span> <!-- 🎵 🎶 -->
</td>
</tr>
<tr> <!-- volume -->
<td><span onclick="AYSir.setGain(0);volume.value=0">🔈</span></td>
<td><input id="volume" oninput="AYSir.setGain(this.value)" type="range" min="0.0" max="1.0" value="0.25" step="0.0001"></td>
<td><span onclick="AYSir.setGain(1);volume.value=1">🔊</span></td>
</tr>
<tr> <!-- position -->
<td>00:00</td>
<td><input id="position" oninput="AYSir.setPos(this.value)" type="range" min="0.0" max="1.0" value="0" step="0.0001"></td>
<td><span id="songLen">00:00</span></td>
</tr>
<tr> <!-- list -->
<td colspan="3"><kk-rows id="songSel" cb="AYSir.playURL" hide="0" head="Author|Song|Format|Archive"></kk-rows></td>
</tr>
</table>
<!-- visualizers -->
<canvas id="myViz"></canvas> <!-- abs positioned visualizer -->
<!-- for audio playback policy -->
<div id="audioModal">👉 💻 👂 🎶</div>
</body>
</html>