-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
185 lines (145 loc) · 5.83 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ambisonics Player</title>
<link href="styles/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<header>
<h1>Generic Ambisonics Player Classes</h1>
<h2>Headphones required!</h2>
<p>This is an attempt to implement abstract audio player classes, that can handle
Ambisonics headphone decoding up to
third order. For now the code is based on <a href="https://github.com/GoogleChrome/omnitone" target="_blank">Omnitone</a>,
but <a href="https://github.com/polarch/JSAmbisonics">JSAmbisonics</a> will be a second option.</p>
</header>
<main>
<section>
<dl>
<dt>
<h3>First Order Ambisonics</h3>
<button id="foa-initialize">Initialize</button>
<button disabled id="foa-load">Load</button>
<button disabled id="foa-play">Play from</button>
<label for="foa-position">Position [0,1]</label>
<input disabled id="foa-position" size="3" type="text" value="0">
<button disabled id="foa-stop">Stop</button>
<button disabled id="foa-resume">Resume</button>
<label for="foa-loop">Loop</label>
<input disabled id="foa-loop" type="checkbox">
<br>
<span id="foa-current-time">0:00</span> /
<span id="foa-duration">0:00</span>
<progress id="foa-progress" value="0"></progress>
<br>
<label for="foa-gain">Gain</label>
<input disabled id="foa-gain" max="0" min="-60" step="1" type="range" value="0">
<span id="foa-gain-label">0</span> dB
<br>
<label for="foa-azimuth">Azimuth</label>
<input disabled id="foa-azimuth" max="180" min="-180" step="0.01" type="range" value="0">
<span id="foa-azimuth-label">0</span>°
<br>
<label for="foa-elevation">Elevation</label>
<input disabled id="foa-elevation" max="90" min="-90" step="0.01" type="range" value="0">
<span id="foa-elevation-label">0</span>°
</dt>
<dd>
<p>"César Franck" · Organ played by Daniela Niedhammer<br>
Recording 2004 by <a href="https://gabriel-wolf.de">Gabriel Wolf</a><br>
<a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC-BY 4.0</a></p>
</dd>
</dl>
</section>
<section>
<dl>
<dt>
<h3>Second Order Ambisonics</h3>
<button id="soa-initialize">Initialize</button>
<button disabled id="soa-load">Load</button>
<button disabled id="soa-play">Play from</button>
<label for="soa-position">Position [0,1]</label>
<input disabled id="soa-position" size="3" type="text" value="0">
<button disabled id="soa-stop">Stop</button>
<button disabled id="soa-resume">Resume</button>
<label for="soa-loop">Loop</label>
<input disabled id="soa-loop" type="checkbox">
<br>
<span id="soa-current-time">0:00</span> /
<span id="soa-duration">0:00</span>
<progress id="soa-progress" value="0"></progress>
<br>
<label for="soa-gain">Gain</label>
<input disabled id="soa-gain" max="0" min="-60" step="1" type="range" value="0">
<span id="soa-gain-label">0</span> dB
<br>
<label for="soa-azimuth">Azimuth</label>
<input disabled id="soa-azimuth" max="180" min="-180" step="0.01" type="range" value="0">
<span id="soa-azimuth-label">0</span>°
<br>
<label for="soa-elevation">Elevation</label>
<input disabled id="soa-elevation" max="90" min="-90" step="0.01" type="range" value="0">
<span id="soa-elevation-label">0</span>°
</dt>
<dd>
<p>"Electro" · Synthetically generated Ambisonics<br>
Made 2004 with VSpace by <a href="https://gabriel-wolf.de">Gabriel Wolf</a><br>
<a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC-BY 4.0</a></p>
</dd>
</dl>
</section>
<section>
<dl>
<dt>
<h3>Third Order Ambisonics</h3>
<button id="toa-initialize">Initialize</button>
<button disabled id="toa-load">Load</button>
<button disabled id="toa-play">Play from</button>
<label for="toa-position">Position [0,1]</label>
<input disabled id="toa-position" size="3" type="text" value="0">
<button disabled id="toa-stop">Stop</button>
<button disabled id="toa-resume">Resume</button>
<label for="toa-loop">Loop</label>
<input disabled id="toa-loop" type="checkbox">
<br>
<span id="toa-current-time">0:00</span> /
<span id="toa-duration">0:00</span>
<progress id="toa-progress" value="0"></progress>
<br>
<label for="toa-gain">Gain</label>
<input disabled id="toa-gain" max="0" min="-60" step="1" type="range" value="0">
<span id="toa-gain-label">0</span> dB
<br>
<label for="toa-azimuth">Azimuth</label>
<input disabled id="toa-azimuth" max="180" min="-180" step="0.01" type="range" value="0">
<span id="toa-azimuth-label">0</span>°
<br>
<label for="toa-elevation">Elevation</label>
<input disabled id="toa-elevation" max="90" min="-90" step="0.01" type="range" value="0">
<span id="toa-elevation-label">0</span>°
</dt>
<dd>
<p>"Dylanesque" · Acoustic guitar in a large open living room<br>
Played by a member of the <a href="https://mhacoustics.com/demos" target="_blank">mh acoustics</a> team<br>
© mh acoustics</p>
</dd>
</dl>
</section>
</main>
<aside class="todo">
<div>
<h3>TODO</h3>
<ol>
<li>JSAmbisonics implementation</li>
<li>Listening tests</li>
</ol>
</div>
</aside>
<aside class="ambisonics-logo"></aside>
<footer>
Made with 🎧 in Berlin
</footer>
<script src="src/main.js" type="module"></script>
</body>
</html>