-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
457 lines (432 loc) · 15 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=0.57, minimum-scale=0.57, maximum-scale=0.57"
/>
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>
Visicality: Online Music Visualizer utilizing Web Audio API and D3.js
</title>
<meta
name="description"
content="Music Visualizer web app built with JavaScript, D3.js, Web Audio API. Created by Derek Wolpert."
/>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link
rel="icon"
type="image/png"
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAC5ElEQVRYR7VXu24aQRS9Z4YKljcCbHD+wE7jwpYifwF9LEVymTSJZH9JIsVNWiuW7J4PQFakpEgDrpBWLiIZbIQU6GMmms3OZnbZ12CgYIWYmXv2zDn3AUr52dnZ2V4sFh3O+RGAXSJ6AaAEgADMAPwCcAvghjHWHQ6HozRHI2lRo9E44JyfAngt1zLGnC1uYN9T/5+Ironok23bP+JixAHINJvNj0T0Xj9YAQg+g4C0oOftdvus1+v9CQMSCqBer+9xzi+EEC/VJhkgiYEYEH3O+clwOBwEQSwB2NraeiWE6BJRMQxxWgYUGO2MudTQ3d3dN/1cHwD55oyxm6jg6u7DriSFJuS2uRSxzoQOINNoNH4C8GiPE08UE1Ei1a6y32q19pUmPADNZvOzElySM8KYCGMgTpi2bX9wzpFf0moAvqcJHFzzDE0cSosqAFfK56Yggu4wyRO2bR+jVqttA7jXN5qCWDVPcM5bEsBbIvoSpNIUxCp5QgjxDtVq9SuAN2EHmIKIYyJCpJeoVCp9IpL+92U69dsUhKEmBiiXy79VVYtKMKYgDDQxQ6lUEnra3BQTkXmiWCx6AMISx6bc4cUqFAqxV7BudwTyxAz5fL4PYC+pmGyCCQADWJbl2TDuCtbNhOuWSwnASURpi8k6mXASUTab3WaM3asKpwNJYydTi+p5gjHWcoqRZVlXRGTUdK6BievRaHTsACgUCgeLxcIrx1HXEceIKRNCiMPHx8d/5dhlwdeQbFgT5w8PD/8bEhdDJpfL+VoyE1ekrR0A+uPxeJ+InDbd15TmcjmnKRVCeB1x2gYjjSaEEHMhxNFkMvHa86W2PJ/PL7Xla9LEHEBnPB5Ht+VKD5IJABdE5BtMknShi1TZzbV3/+np6UR/cxUrdjSzLMsbzZ6RJ6TgztSdB92SOJy6Fj1dIU84w6m0WpxFEwGozW7G7BDRERHtMsa88ZyIZowxbzwnou50Ok01nv8FJ6a4dlA6B3IAAAAASUVORK5CYII="
sizes="32x32"
id="favicon"
/>
<script src="/src/index.js" type="module"></script>
</head>
<body id="app">
<section id="large-play">
<span id="large-play-container">
<i class="fas fa-play" id="large-play-icon"></i>
</span>
</section>
<section class="background-color-header" id="background-color-header">
<div class="background-color-header-container">
<div class="background-color-title-container">
<h3 class="background-color-title" id="background-color-title">
Background Color Gradient
</h3>
</div>
<section class="rotate-background-container">
<div class="rotate-left" id="rotate-left">
<i class="fas fa-undo-alt"></i>
</div>
<div class="rotate-right" id="rotate-right">
<i class="fas fa-redo-alt"></i>
</div>
</section>
<div class="color-picker-container-1">
<label for="color-picker-1" id="color-picker-label-1">
<input type="color" id="color-picker-1" value="#0C0C0C" />
<i class="fas fa-palette"></i>
</label>
</div>
<div class="color-picker-container-2">
<label for="color-picker-2" id="color-picker-label-2">
<input type="color" id="color-picker-2" value="#181818" />
<i class="fas fa-palette"></i>
</label>
</div>
<div class="color-picker-container-3">
<label for="color-picker-3" id="color-picker-label-3">
<input type="color" id="color-picker-3" value="#242424" />
<i class="fas fa-palette"></i>
</label>
</div>
</div>
</section>
<section class="personal-links" id="personal-links">
<div id="personal-links-container">
<a
href="https://github.com/derekwolpert/Visicality"
target="_blank"
data="Visicality's Github repository"
>
<i class="fab fa-github" id="github-link"></i>
</a>
<a
href="https://www.linkedin.com/in/derek-wolpert/"
target="_blank"
data="Derek Wolpert's LinkedIn profile"
>
<i class="fab fa-linkedin-in" id="linkedin-link"></i>
</a>
<a
href="https://angel.co/derek-wolpert"
target="_blank"
data="Derek Wolpert's AngelList profile"
>
<i class="fab fa-angellist" id="angellist-link"></i>
</a>
<a
href="https://www.derekwolpert.com"
target="_blank"
data="Derek Wolpert's personal website"
>
<i class="fas fa-external-link-alt" id="portfolio-link"></i>
</a>
<a
href="mailto: me@derekwolpert.com"
data="Send Derek Wolpert an email about his project"
>
<i class="far fa-envelope" id="email-link"></i>
</a>
<span data="Keyboard Controls">
<i class="fas fa-keyboard" id="keyboard-controls"></i>
</span>
</div>
<i class="fas fa-info-circle" id="info-link" data="Information"></i>
</section>
<section id="project-name">
<div class="project-title">
<span>vi·si·cal·i·ty</span> (visual + musicality)
</div>
<div class="project-subtitle">
an Online Music Visualizer utilizing
<a
href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API"
target="_blank"
>Web Audio API</a
>
and <a href="https://d3js.org" target="_blank">D3.js</a>
</div>
<div class="project-author">
designed and developed by
<a href="https://www.derekwolpert.com" target="_blank">Derek Wolpert</a>
</div>
</section>
<section class="left-sidebar" id="left-sidebar">
<div class="left-sidebar-container">
<div
class="visualizer-option-1 active-visualizer"
id="bar-graph-button"
data="Vertical Bars"
>
<span>1</span>
</div>
<div
class="visualizer-option-2"
id="horizontal-bar-button"
data="Horizontal Bars"
>
<span>2</span>
</div>
<div
class="visualizer-option-3"
id="circle-graph-button"
data="Center Circles"
>
<span>3</span>
</div>
<div
class="visualizer-option-4"
id="circle-linear-button"
data="Line Circles"
>
<span>4</span>
</div>
<div
class="visualizer-option-5"
id="symetrical-line-button"
data="Symetrical Lines"
>
<span>5</span>
</div>
<div
class="visualizer-option-6"
id="symetrical-circle-button"
data="Symetrical Circles"
>
<span>6</span>
</div>
<div
class="visualizer-option-7"
id="full-screen-button"
data="Full Screen Bars"
>
<span>7</span>
</div>
<div
class="visualizer-option-8"
id="waveform-linear-button"
data="Waveform Lines"
>
<span>8</span>
</div>
<div
class="visualizer-option-9"
id="waveform-circle-button"
data="Waveform Circles"
>
<span>9</span>
</div>
<h3 id="visualizer-title">Visualizations</h3>
</div>
</section>
<!-- <section id="microphone">
<span id="microphone-container">
<i class="fas fa-microphone"></i>
</span>
</section> -->
<section class="right-sidebar" id="right-sidebar">
<div class="right-sidebar-container">
<h3 class="colors-title" id="colors-title">Colors</h3>
<div
class="color-option-1 active-color"
id="rainbow-button"
data="Rainbow"
>
<span>1</span>
</div>
<div class="color-option-2" id="plasma-button" data="Plasma">
<span>2</span>
</div>
<div class="color-option-3" id="viridis-button" data="Viridis">
<span>3</span>
</div>
<div class="color-option-4" id="sinebow-button" data="Sinebow">
<span>4</span>
</div>
<div class="color-option-5" id="spectral-button" data="Spectral">
<span>5</span>
</div>
<div class="color-option-6" id="cubehelix-button" data="Cubehelix">
<span>6</span>
</div>
<div class="color-option-7" id="ylorrd-button" data="Red Orange Yellow">
<span>7</span>
</div>
<div class="color-option-8" id="ylgnbu-button" data="Blue Green Yellow">
<span>8</span>
</div>
<div class="color-option-9" id="greys-button" data="Black Grey White">
<span>9</span>
</div>
</div>
</section>
<section class="right-gain-bar" id="right-gain-bar">
<div class="right-gain-container">
<div class="gain-container">
<div class="gain-bar-container">
<div id="gain-bar"></div>
<div id="gain-bar-value"></div>
</div>
</div>
<h3 class="gain-title" id="gain-title">Gain</h3>
</div>
</section>
<section id="demo-button-container">
<div id="demo-button">Demo Song</div>
</section>
<footer class="footer-audio-player" id="footer-audio-player">
<section class="footer-audio-container">
<div class="play-pause">
<i class="fas fa-play" id="play-pause"></i>
</div>
<div class="file-input">
<input
type="file"
id="file-input"
accept="audio/*, .m4a, .mp3, .wav, .flac .ogg, .aac"
/>
<div class="file-input-container">
<label for="file-input" id="file-input-label"
>Choose a local file for visualizer</label
>
</div>
</div>
<div id="track-name"></div>
<div id="time-progress"></div>
<div class="playbar-container">
<div id="playbar"></div>
<div id="playbar-progress"></div>
</div>
<div id="time-left"></div>
<div class="full-screen">
<span
id="full-screen-container"
data="Enter Full-Screen, or press [F]"
>
<i class="fas fa-arrows-alt"></i>
</span>
</div>
</section>
</footer>
<audio id="audio"></audio>
<section id="information-modal">
<div class="information-modal-container">
<p class="center-modal-title">
Welcome to <span class="modal-italicize">vi·si·cal·i·ty</span> (visual
+ musicality)
</p>
<br />
<p>
<span class="modal-italicize">vi·si·cal·i·ty</span> is a web-based
music visualizer utilizing
<a
href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API"
target="_blank"
>Web Audio API</a
>
and <a href="https://d3js.org" target="_blank">D3.js</a>.
</p>
<br />
<p class="modal-feature-title">Features:</p>
<br />
<ul>
<li>
Utilize your own audio files (or the built-in demo song) with a
unique audiovisual experience.
</li>
<li>Seamlessly switch between nine visualizer designs.</li>
<li>Select from nine diverse visualization color schemes.</li>
<li>
Full customizable color settings for visualizer, background gradient
and favicon.
</li>
<li>
Adjust the gain of the audio, and watch as the intensity of the
visualizer changes.
</li>
<li>Quick access to transition in and out of full-screen mode.</li>
<li>
Intuitive UI/UX that automatically hides when audio is playing and
there is no mouse movement.
</li>
<li>
Flexible combination of onscreen controls and keyboard shortcuts.
</li>
</ul>
<br />
<p>
To learn more about
<span class="modal-italicize">vi·si·cal·i·ty</span> visit the
<a href="https://github.com/derekwolpert/Visicality" target="_blank"
>GitHub repository for this project</a
>. To learn more about
<span class="modal-italicize">vi·si·cal·i·ty</span>'s developer,
<span class="bold-modal">Derek Wolpert</span>, visit his
<a href="https://www.linkedin.com/in/derek-wolpert/" target="_blank"
>LinkedIn profile</a
>,
<a href="https://angel.co/derek-wolpert" target="_blank"
>AngelList profile</a
>, or
<a href="https://www.derekwolpert.com/" target="_blank"
>personal website</a
>. If you have any questions, comments, or would like to report an
issue feel free to
<a href="mailto: me@derekwolpert.com">reach out by email</a>.
</p>
<br />
<p class="center-modal">Thanks for visiting 🙂</p>
<div id="close-modal">
<i class="fas fa-times"></i>
</div>
</div>
</section>
<section id="keyboard-modal">
<div class="keyboard-modal-container">
<div class="center-modal-title">Keyboard Controls</div>
<br />
<div class="center-modal">
In addtion to on-screen controls,
<span class="modal-italicize">vi·si·cal·i·ty</span> supports a wide
range of keyboard shortcuts:
</div>
<br />
<table>
<tr>
<th>Key</th>
<th>Action</th>
</tr>
<tr>
<td>Spacebar</td>
<td>Play / Pause Audio</td>
</tr>
<tr>
<td>Left-Arrow</td>
<td>Seek audio 5 seconds backwards</td>
</tr>
<tr>
<td>Right-Arrow</td>
<td>Seek audio 5 seconds forward</td>
</tr>
<tr>
<td>Up-Arrow</td>
<td>Increase gain (volume) by 10 percent</td>
</tr>
<tr>
<td>Down-arrow</td>
<td>Decrease gain (volume) by 10 percent</td>
</tr>
<tr>
<td>F</td>
<td>Enter / Exit fullscreen mode</td>
</tr>
<tr>
<td>W</td>
<td>Previous visualizer design, based on associated number</td>
</tr>
<tr>
<td>S</td>
<td>Next visualizer design, based on associated number</td>
</tr>
<tr>
<td>A</td>
<td>Previous visualizer color, based on associated number</td>
</tr>
<tr>
<td>D</td>
<td>Next visualizer color, based on associated number</td>
</tr>
<tr>
<td>R</td>
<td>Set random three-color background gradient</td>
</tr>
<tr>
<td>Q</td>
<td>Rotate background left 45 degrees</td>
</tr>
<tr>
<td>E</td>
<td>Rotate background right 45 degrees</td>
</tr>
</table>
<div id="keyboard-close-modal">
<i class="fas fa-times"></i>
</div>
</div>
</section>
</body>
</html>