forked from martinRenou/threejs-caustics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (33 loc) · 1.8 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
<!DOCTYPE html>
<html>
<head>
<title>ThreeJS Caustics play music</title>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/controls/OrbitControls.js"></script>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/[email protected]/examples/js/loaders/OBJLoader.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/stats.js/r16/Stats.js"></script>
<script type="text/javascript" src="https://spectorcdn.babylonjs.com/spector.bundle.js"></script>
</head>
<body>
<canvas id="canvas" width="1024px" height="800px"></canvas>
<h1 class="title">
ThreeJS Caustics play music click on water then (1-8) keys
</h1>
<button onclick="openFullscreen();">Open Video in Fullscreen Mode</button>
<!-- TODO fix note names which are no longer relevant -->
<!-- Drum and bass -->
<audio data-key="A0" src="./assets/sounds/EX_WS_perc_humpback_whale_stomp_Bb.wav"></audio>
<audio data-key="B0" src="./assets/sounds/EX_WS_bass_humpback_whale_deep_C.wav"></audio>
<audio data-key="C0" src="./assets/sounds/EX_WS_tone_humpback_whale_trumpet_B.wav"></audio>
<!-- Long phrases -->
<audio data-key="D0" src="./assets/sounds/EX_WS_texture_humpback_whale_ambience.wav"></audio>
<audio data-key="E0" src="./assets/sounds/EX_WS_tonal_humpback_whale_multiple.wav"></audio>
<audio data-key="F0" src="./assets/sounds/EX_WS_tonal_humpback_whale_deep_phrase.wav"></audio>
<!-- Drum kicks -->
<audio data-key="G0" src="./assets/sounds/EX_WS_tone_humpback_whale_zipper_F.wav"></audio>
<audio data-key="A1" src="./assets/sounds/EX_WS_clap_sperm_whale.wav"></audio>
<script type="text/javascript" src="index.js"></script>
</body>
</html>