-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02-more-sounds.html
25 lines (21 loc) · 977 Bytes
/
02-more-sounds.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
<!DOCTYPE html>
<html>
<head>
<title>yorb sound workshopt - three.js webaudio</title>
</head>
<body>
<audio loop id="track1" src="assets/sounds/track_1.mp3" type="audio/mpeg" preload="auto" style="display: none"></audio>
<audio loop id="track2" src="assets/sounds/track_2.mp3" type="audio/mpeg" preload="auto" style="display: none"></audio>
<audio loop id="track3" src="assets/sounds/track_3.mp3" type="audio/mpeg" preload="auto" style="display: none"></audio>
<audio loop id="track4" src="assets/sounds/track_4.mp3" type="audio/mpeg" preload="auto" style="display: none"></audio>
<!-- we need a button to start the audio context
we will set this div to disappear when we click the button -->
<div id="overlay" style="margin: 0 auto">
<button id="startButton">Play</button>
</div>
<!-- the container for our three.js scene -->
<div id="container"></div>
<!-- our javascript file -->
<script src="js/moreSounds.js" type="module" ></script>
</body>
</html>