-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (101 loc) · 4.64 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
<!DOCTYPE html>
<html>
<head>
<!-- <script src="src/js/p5.min.js"></script> -->
<!-- <script src="src/js/p5.dom.min.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script>
<!-- <script src="src/js/Tone.min.js" type="text/javascript"></script> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/Tone.min.js"></script>
<!-- <script src="src/js/ml5.min.js" type="text/javascript"></script> -->
<script src="https://unpkg.com/ml5@latest/dist/ml5.min.js"></script>
<link rel="stylesheet" type="text/css" href="src/style.css">
<meta charset="utf-8">
<!-- add og property -->
<title>Sun and Us</title>
<!-- utf-8 universal character set - otherwise webpage will be messed up -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="author" content="Yiting Liu">
<meta name="description" content="Perform a symphony with the sun.">
<!-- adding open graph protocol for embedding and sharing -->
<meta property="og:title" content="Sun and Us - Interactive Experience" />
<meta property="og:type" content="website" />
<meta property="og:description"
content="An interactive audio-visual experience to perform a symphony with the sun." />
<meta property="og:url" content="https://sunandus.netlify.app/" />
<!-- size recommended is 1.19:1 -->
<!-- why the images are not showing up in the debugger? Even when I hosted the page, it is not loaded. -->
<meta property="og:image" content="https://sunandus.netlify.app/assets/demo.png" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-QQYY09XFY4"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-QQYY09XFY4');
</script>
</head>
<body>
<div id="soundSetting">
<img id="mute" style="display: flex;" src="./assets/volume-up-solid.svg">
</div>
<div id="about">
<h2>❔</h2>
</div>
<div id="showAbout">
<p> An interactive audio piece by <a target="_blank" href="https://yitingliu.com/"> Yiting Liu</a>. DM on <a
target="_blank" href="https://www.instagram.com/yliu.designs/">Insta</a> .</p>
<p>Enjoy the compilation of field recordings from <a target="_blank" href="https://aporee.org/">Aporee Radio</a> by
the <a target="_blank" href="http://api.open-notify.org/"> ISS position</a> and <a target="_blank"
href="https://ipgeolocation.io/documentation/ip-geolocation-api.html">altitude of the sun</a> .</p>
</div>
<div class="typewriter" id="intro" class="UI-Container">
<h2>Sun and Us</h2>
<p>An interactive audio experience that creates a symphony of field recordings from the sun and us.</p>
<p>Turn on your camera for full experience.</p>
<br>
<button id="startButton">Start Experience</button>
</div>
<div id="sliderControl" class="UI-Container">
<div class="Button-Container">
<button id="sunButton">Sun</button>
<button id="usButton">Us</button>
</div>
<div id="sunContent" class="controlContainer">
<div class="slidecontainer" id="pitch">
<p id="pitchValue">Pitch: 0</p>
<input type="range" min="-12" max="12" value="-12" step="0.01" id="pitchSlider">
</div>
<div class="slidecontainer">
<p id="distortionValue">Distortion: 0</p>
<input type="range" min="0" max="1" value="0" step="0.001" id="distortionSlider">
</div>
<div class="slidecontainer">
<p id="loopStartValue">Loop Start: 0</p>
<input type="range" min="0" max="100" value="0" id="loopStartSlider">
</div>
<div class="slidecontainer">
<p id="loopEndValue">Loop End: 0</p>
<input type="range" min="0" max="500" value="0" id="loopEndSlider">
</div>
<div class="slidecontainer">
<p id="cutoffFreqValue">Cutoff Frequency: 0</p>
<input type="range" min="0" max="10000" value="0" id="cutoffFreqSlider">
</div>
</div>
<div id="usContent" class="controlContainer">
<p id="usParagraph">With webcam, you can join in the symphony.</p>
<!-- <p>Move your head vertically to choose the cut off frequency: </p>
<p>Move your right hand vertically to change pitch: </p>
<p>Move your left hand to set the loop start point: </p>
<p>Move your right hand to set the loop end point: </p> -->
</div>
</div>
<div class="container">
<!-- Sketch Div is only for the visuals -->
<div id="sketchDiv" >
</div>
</div>
<footer id="footer" class="footer"></footer>
<script src="src/js/sketch.js"></script>
</body>
</html>