-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
356 lines (307 loc) · 16.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<link rel="stylesheet" type="text/css" href="styles.css">
<title>Audio Visualizer</title>
</head>
<body>
<div class="sidebar">
<div class="sidebar-content">
<div class="playback-settings">
<div class="settings-item">
<button id="playButton">Play</button>
<button id="pauseButton">Pause</button>
<input accept="audio/*" id="fileInput" type="file">
</div>
<div class="settings-item">
<button id="startRecordingButton">Start Recording</button>
<button id="stopRecordingButton">Stop Recording</button>
</div>
</div>
<div class="other-settings">
<div class="settings-item">
<label for="videoQualitySelect">Video Quality:</label>
<select id="videoQualitySelect">
<option value="high">High</option>
<option value="medium">Medium</option>
<option value="low">Low</option>
</select>
</div>
<div class="settings-item">
<label for="particlesToggle">Particles:</label>
<input id="particlesToggle" type="checkbox">
</div>
<div class="settings-item">
<label for="particleCount">Particle Count:</label>
<input id="particleCount" max="10000" min="100" step="100" type="range" value="1000">
</div>
<div class="settings-item">
<label for="particleShape">Particle Shape:</label>
<select id="particleShape">
<option value="circle">Circle</option>
<option value="square">Square</option>
<option value="triangle">Triangle</option>
<option value="star">Star</option>
</select>
</div>
<div class="settings-item">
<label for="particleSize">Particle Size:</label>
<input id="particleSize" max="5" min="0.1" step="0.1" type="range" value="1">
</div>
<div class="settings-item">
<label for="particleSpeed">Particle Speed:</label>
<input id="particleSpeed" max="5" min="0.1" step="0.1" type="range" value="1">
</div>
<div class="settings-item">
<label for="particleDirection">Particle Direction:</label>
<select id="particleDirection">
<option value="outward">Outward</option>
<option value="inward">Inward</option>
<option value="upward">Upward</option>
<option value="downward">Downward</option>
<option value="random">Random</option>
</select>
</div>
<div class="settings-item">
<label for="particleMovement">Particle Movement:</label>
<select id="particleMovement">
<option value="linear">Linear</option>
<option value="circular">Circular</option>
<option value="spiral">Spiral</option>
</select>
</div>
<div class="settings-item">
<label for="geometrySelect">Geometry:</label>
<select id="geometrySelect">
<option value="sphere">Sphere</option>
<option value="cube">Cube</option>
<option value="torus">Torus</option>
<option value="plane">Plane</option>
<option value="icosahedron">Icosahedron</option>
<option value="octahedron">Octahedron</option>
<option value="tetrahedron">Tetrahedron</option>
<option value="dodecahedron">Dodecahedron</option>
<option value="cylinder">Cylinder</option>
<option value="cone">Cone</option>
<option value="pyramid">Pyramid</option>
<option value="knot">Knot</option>
<option value="ring">Ring</option>
<option value="grid">Grid</option>
<option value="star">Star</option>
<option value="torusKnot">Torus Knot</option>
<option value="boxLine">Box Line</option>
<option value="heart">Heart</option>
<option value="arrow">Arrow</option>
<option value="gear">Gear</option>
</select>
</div>
<div class="settings-item">
<label for="geometryCount">Geometry Count:</label>
<input id="geometryCount" max="50" min="1" type="number" value="1">
</div>
<div class="settings-item">
<label for="bgColor">Background Color:</label>
<input id="bgColor" type="color" value="#000000">
<label for="bgColorAuto">Auto: </label>
<select id="bgColorAuto">
<option value="none">None</option>
<option value="fade">Fade</option>
<option value="strobo">Strobo</option>
</select>
</div>
<div class="settings-item">
<label for="geomColor">Geometry Color:</label>
<input id="geomColor" type="color" value="#ffffff">
<label for="geomColorAuto">Auto: </label>
<select id="geomColorAuto">
<option value="none">None</option>
<option value="fade">Fade</option>
<option value="strobo">Strobo</option>
</select>
</div>
<div class="settings-item">
<label for="dynamicsStrength">Dynamics Strength:</label>
<input id="dynamicsStrength" max="5" min="0" step="0.1" type="range" value="1">
</div>
<div class="settings-item">
<label for="dynamicsIntensity">Dynamics Intensity:</label>
<input id="dynamicsIntensity" max="5" min="0" step="0.1" type="range" value="1">
</div>
<div class="settings-item">
<label for="dynamicAutoToggle">Automate Dynamics:</label>
<input id="dynamicAutoToggle" type="checkbox">
</div>
<div class="settings-item">
<label for="positionSensitivity">Position Sensitivity:</label>
<input id="positionSensitivity" max="5" min="0.1" step="0.1" type="range" value="1">
</div>
<div class="settings-item">
<label for="rotationSensitivity">Rotation Sensitivity:</label>
<input id="rotationSensitivity" max="5" min="0.1" step="0.1" type="range" value="1">
</div>
<div class="settings-item">
<label for="scaleSensitivity">Scale Sensitivity:</label>
<input id="scaleSensitivity" max="5" min="0.1" step="0.1" type="range" value="1">
</div>
<div class="settings-item">
<label for="skewSensitivity">Skew Sensitivity:</label>
<input id="skewSensitivity" max="5" min="0.1" step="0.1" type="range" value="0.5">
</div>
<div class="settings-item">
<label for="twistSensitivity">Twist Sensitivity:</label>
<input id="twistSensitivity" max="5" min="0.1" step="0.1" type="range" value="0.5">
</div>
<div class="settings-item">
<label for="movementPatternSelect">Movement Pattern:</label>
<select id="movementPatternSelect">
<option value="oscillation">Oscillation</option>
<option value="wave">Wave</option>
<option value="spiral">Spiral</option>
<option value="none">None</option>
</select>
</div>
<div class="settings-item">
<label for="randomize">Randomize Movement:</label>
<input id="randomize" type="checkbox">
</div>
<div class="settings-item">
<label for="light1Color">Light 1 Color:</label>
<input id="light1Color" type="color" value="#ffffff">
</div>
<div class="settings-item">
<label for="light2Color">Light 2 Color:</label>
<input id="light2Color" type="color" value="#ffffff">
</div>
<div class="settings-item">
<label for="lightRotationSpeed">Light Rotation Speed:</label>
<input id="lightRotationSpeed" max="1" min="0" step="0.01" type="range" value="0.1">
</div>
<div class="settings-item">
<label for="surfaceType">Surface Type:</label>
<select id="surfaceType">
<option value="standard">Standard</option>
<option value="reflective">Reflective</option>
<option value="transparent">Transparent</option>
<option value="psychedelic">Psychedelic</option>
<option value="chrome">Chrome</option>
<option value="holographic">Holographic</option>
<option value="fluid">Fluid</option>
</select>
</div>
<div class="settings-item">
<label for="masterEffectStrength">Master Effect Strength:</label>
<input id="masterEffectStrength" max="5" min="0" step="0.1" type="range" value="1">
</div>
<div class="settings-item">
<label for="stroboColor">Strobo Color:</label>
<input id="stroboColor" type="color" value="#ff00ff">
</div>
<div class="settings-item">
<label for="automateCamera">Automate Camera:</label>
<input id="automateCamera" type="checkbox">
</div>
<div class="settings-item">
<label for="cameraModeSelect">Camera Mode:</label>
<select id="cameraModeSelect">
<option value="normal">Normal</option>
<option value="fixedRotation">Fixed Rotation</option>
<option value="zoomInOut">Zoom In and Out</option>
<option value="circularPath">Circular Path</option>
<option value="randomJump">Random Jump</option>
<option value="spiral">Spiral</option>
</select>
</div>
<div class="settings-item">
<label for="cameraSpeed">Camera Speed:</label>
<input id="cameraSpeed" max="5" min="0.1" step="0.1" type="range" value="1">
</div>
<div class="settings-item">
<label for="cameraCraziness">Camera Craziness:</label>
<input id="cameraCraziness" max="1" min="0" step="0.1" type="range" value="0">
</div>
<div class="settings-item">
<label for="glowEffectToggle">Glow Effect:</label>
<input id="glowEffectToggle" type="checkbox">
</div>
<div class="settings-item">
<label for="distortionEffectToggle">Distortion Effect:</label>
<input id="distortionEffectToggle" type="checkbox">
</div>
<div class="settings-item">
<label for="chromaticAberrationToggle">Chromatic Aberration:</label>
<input id="chromaticAberrationToggle" type="checkbox">
</div>
<div class="settings-item">
<label for="motionBlurToggle">Motion Blur:</label>
<input id="motionBlurToggle" type="checkbox">
</div>
<div class="settings-item">
<label for="bloomIntensity">Bloom Intensity:</label>
<input id="bloomIntensity" max="5" min="0" step="0.1" type="range" value="1">
</div>
<div class="settings-item">
<label for="filmGrainToggle">Film Grain:</label>
<input id="filmGrainToggle" type="checkbox">
</div>
<div class="settings-item">
<label for="filmGrainIntensity">Grain Intensity:</label>
<input id="filmGrainIntensity" max="1" min="0" step="0.01" type="range" value="0.35">
</div>
<div class="settings-item">
<label for="vignetteToggle">Vignette:</label>
<input id="vignetteToggle" type="checkbox">
</div>
<div class="settings-item">
<label for="vignetteDarkness">Vignette Darkness:</label>
<input id="vignetteDarkness" max="2" min="0" step="0.1" type="range" value="1.2">
</div>
<div class="settings-item">
<label for="colorCorrectionToggle">Color Correction:</label>
<input id="colorCorrectionToggle" type="checkbox">
</div>
<div class="settings-item">
<label for="hue">Hue:</label>
<input id="hue" max="2" min="0" step="0.01" type="range" value="0">
</div>
<div class="settings-item">
<label for="saturation">Saturation:</label>
<input id="saturation" max="2" min="0" step="0.01" type="range" value="1">
</div>
<div class="settings-item">
<label for="brightness">Brightness:</label>
<input id="brightness" max="2" min="0" step="0.01" type="range" value="1">
</div>
</div>
</div>
<div class="sidebar-collapse">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 19.5 8.25 12l7.5-7.5" />
</svg>
</div>
</div>
<canvas id="audioCanvas"></canvas>
<div id="loadingBarContainer">
<div id="loadingBar">
<div id="loadingBarProgress"></div>
</div>
<p id="loadingText">Loading...</p>
</div>
<!-- Including necessary scripts for Three.js controls and tweening animations -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/controls/OrbitControls.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tween.js/18.6.4/tween.umd.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/postprocessing/EffectComposer.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/postprocessing/RenderPass.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/postprocessing/ShaderPass.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/shaders/CopyShader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/shaders/VignetteShader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/shaders/FilmShader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/shaders/ColorCorrectionShader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/postprocessing/FilmPass.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/postprocessing/VignettePass.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/postprocessing/ColorCorrectionPass.js"></script>
<script src="visualizer.js"></script>
</body>
</html>